403Webshell
Server IP : 43.130.17.34  /  Your IP : 216.73.217.6
Web Server : nginx/1.28.0
System : Linux VM-4-12-opencloudos 6.6.92-34.1.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 25 21:32:13 CST 2025 x86_64
User : www ( 1000)
PHP Version : 8.0.26
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/yespkg.com/wp-content/plugins/mail-manager-wpforms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/yespkg.com/wp-content/plugins//mail-manager-wpforms/mail-manager-wpf.php
<?php
/**
 * Mail Manager for WPForms
 *
 * @package           mail-manager-wpforms
 * @author            Nishan
 * @copyright         2025 Nishan
 * @license           GPL-2.0-or-later
 *
 * @wordpress-plugin
 * Plugin Name:       Mail Manager for WPForms
 * Plugin URI:        https://mmw.diviaccessories.com/
 * Description:       This database add-on for WPForms ensures all your entries are securely stored and easily accessible
 * Version:           1.1.2
 * Requires at least: 6.5
 * Requires PHP:      7.4
 * Author:            Nishan
 * Author URI:        https://github.com/nishanmazumder
 * Text Domain:       mail-manager-wpforms
 * Domain Path:       /languages
 * License:           GPLv2 or later
 * License URI:       https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */

use MMWPF\Core\Manager;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Define Plugins Constants.
 *
 * @since 1.0.0
 */

define( 'MMWPF_PATH', plugin_dir_path( __FILE__ ) );
define( 'MMWPF_URL', plugin_dir_url( __FILE__ ) );
define( 'MMWPF_NAME', 'mail-manager-wpforms' );
define( 'MMWPF_VERSION', '1.1.2' );

/**
 * Loader class.
 *
 * @since 1.0.0
 */
require MMWPF_PATH . 'includes/class-manager.php';
$mail_manager_wpf = new Manager();

/**
 * After plugin activation.
 *
 * @since 1.0.0
 *
 * @return void
 */
if ( $mail_manager_wpf instanceof Manager ) {
	register_activation_hook(
		__FILE__,
		function () use ( $mail_manager_wpf ) {
			initialize_mail_manager_wpf( $mail_manager_wpf );
		}
	);
}

/**
 * Kick everything.
 *
 * @since    1.0.0
 *
 * @return void
 */
if ( $mail_manager_wpf instanceof Manager ) {
	add_action(
		'init',
		function () use ( $mail_manager_wpf ) {
			kick_mail_manager_wpf( $mail_manager_wpf );
		}
	);
}
// After deactivation.
register_deactivation_hook( __FILE__, 'halt_mail_manager_wpf' );

// Action links.
add_filter( 'plugin_action_links', 'mmwpf_action_links', 10, 5 );

/**
 * The code that runs during plugin activation.
 *
 * @since 1.0.0
 *
 * @param object $mail_manager_wpf Instance.
 *
 * @return void
 */
function initialize_mail_manager_wpf( $mail_manager_wpf ) {

	// Database create.
	if ( method_exists( $mail_manager_wpf, 'db_create_mail_manager_wpf' ) ) {
		$mail_manager_wpf->db_create_mail_manager_wpf();
	}

	// check installation.
	if ( ! function_exists( 'wpforms' ) ) {
		set_transient( 'mmwpf_dependency', true, 5 );
	}

	// Set plugin install date.
	update_user_meta( get_current_user_id(), 'mmwpf_install_time', time() );

	// Set a transient to display the welcome message.
	set_transient( 'mmwpf_active_notice', true, 5 );
}

/**
 * The code that runs during plugin deactivation.
 *
 * @since 1.0.0
 */
function halt_mail_manager_wpf() {}


/**
 * Initiates the plugin's execution.
 *
 * Because all components of the plugin are hooked into the system,
 * starting the plugin at this point in the file does not impact
 * the overall page life cycle.
 *
 * @since    1.0.0
 *
 * @param object $mail_manager_wpf Instance.
 *
 * @return void
 */
function kick_mail_manager_wpf( $mail_manager_wpf ) {
	if ( method_exists( $mail_manager_wpf, 'kick_mmwpf' ) ) {
		$mail_manager_wpf->kick_mmwpf();
	}
}

/**
 * Core plugin action links.
 * Includes interface, documentation, and settings.
 *
 * @param string[] $actions An array containing the plugin's action links.
 * @param string   $plugin_file The path to the plugin file relative to the plugins directory.
 *
 * @since 1.0.0
 */
function mmwpf_action_links( $actions, $plugin_file ) {
	static $plugin;

	if ( ! isset( $plugin ) ) {
		$plugin = plugin_basename( __FILE__ );
	}

	if ( $plugin === $plugin_file ) {
		$dashboard = array( 'dashboard' => '<a href="' . admin_url( 'admin.php?page=mail-manager-wpf' ) . '">' . __( 'Dashboard', 'mail-manager-wpforms' ) . '</a>' );
		$settings  = array( 'settings' => '<a href="' . admin_url( 'admin.php?page=mail-manager-wpf-settings' ) . '">' . __( 'Settings', 'mail-manager-wpforms' ) . '</a>' );
		$actions   = array_merge( $settings, $actions );
		$actions   = array_merge( $dashboard, $actions );
	}

	return $actions;
}

Youez - 2016 - github.com/yon3zu
LinuXploit