403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/phukiencasu.com/public_html/wp-content/plugins/wp-smtp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/phukiencasu.com/public_html/wp-content/plugins/wp-smtp/wp-smtp.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * Plugin Name: Kadence Mail
 * Description: Kadence Mail can help us to send emails via SMTP instead of the PHP mail() function and email logger built-in.
 * Version: 3.0.0
 * Author: Kadence
 * Author URI: https://kadencewp.com
 * License: GPLv3 or Later
 *
 * Copyright 2012-2022 Yehuda Hassine yehudahas@gmail.com
 * Copyright 2022-2022 WPChill heyyy@wpchill.com
 * Copyright 2023 SolidWP contact@so.com
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License, version 3, 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
 */

/*
 * The plugin was originally created by BoLiQuan
 */

define( 'WPSMTP__FILE__', __FILE__ );
define( 'WPSMTP_PLUGIN_BASE', plugin_basename( WPSMTP__FILE__ ) );
define( 'WPSMTP_PATH', plugin_dir_path( WPSMTP__FILE__ ) );
define( 'WPSMTP_URL', plugins_url( '/', WPSMTP__FILE__ ) );
define( 'WPSMTP_ASSETS_PATH', WPSMTP_PATH . 'assets/' );
define( 'WPSMTP_ASSETS_URL', WPSMTP_URL . 'assets/' );
define( 'WPSMTP_VERSION', '3.0.0' );

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/vendor/vendor-prefixed/autoload.php';

class WP_SMTP {

	public function __construct() {
		$this->hooks();
	}

	public function hooks() {
		register_activation_hook( __FILE__, [ $this, 'wp_smtp_activate' ] );

		add_filter( 'plugin_action_links', [ $this, 'wp_smtp_settings_link' ], 10, 2 );
		add_action( 'wp_loaded', [ $this, 'load_admin_requirements' ], 16 );

		// add the new code bootstrap.
		require_once __DIR__ . '/src/functions/boot.php';
		$core = solid_mail_plugin();
		add_action(
			'plugins_loaded',
			static function () use ( $core ): void {
				$core->init();
			}
		);
	}

	public function load_admin_requirements() {
		new WPSMTP\Admin();
		new WPSMTP\Logger\Process();
	}

	public function wp_smtp_activate() {
		// @TODO: should we init solid 'solid_mail_settings' here?
		\WPSMTP\Logger\Table::install();
		// @TODO: table should be deleted on uninstalling
	}

	public function wp_smtp_settings_link( $action_links, $plugin_file ) {
		if ( $plugin_file === plugin_basename( __FILE__ ) ) {

			$ws_settings_link = '<a href="admin.php?page=solidwp-mail-logs">' . __( 'Logs', 'wp-smtp' ) . '</a>';
			array_unshift( $action_links, $ws_settings_link );

			$ws_settings_link = '<a href="admin.php?page=solidwp-mail">' . __( 'Settings', 'wp-smtp' ) . '</a>';
			array_unshift( $action_links, $ws_settings_link );
		}

		return $action_links;
	}
}

new WP_SMTP();

Youez - 2016 - github.com/yon3zu
LinuXploit