403Webshell
Server IP : 68.178.247.200  /  Your IP : 216.73.216.14
Web Server : Apache
System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : x9dppmxs4rgd ( 8559391)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/x9dppmxs4rgd/public_html/wp-content/plugins/publishpress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/x9dppmxs4rgd/public_html/wp-content/plugins/publishpress///includes.php
<?php
/**
 * @package PublishPress
 * @author  PublishPress
 *
 * Copyright (c) 2018 PublishPress
 *
 * ------------------------------------------------------------------------------
 * Based on Edit Flow
 * Author: Daniel Bachhuber, Scott Bressler, Mohammad Jangda, Automattic, and
 * others
 * Copyright (c ) 2009-2016 Mohammad Jangda, Daniel Bachhuber, et al.
 * ------------------------------------------------------------------------------
 *
 * This file is part of PublishPress
 *
 * PublishPress 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 3 of the License, or
 * (at your option ) any later version.
 *
 * PublishPress 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 PublishPress.  If not, see <http://www.gnu.org/licenses/>.
 */

use PPVersionNotices\Module\MenuLink\Module;
use PublishPress\Legacy\Auto_loader;

if (! defined('PP_LOADED')) {
    // Define constants
    define('PUBLISHPRESS_VERSION', '3.7.0');
    define('PUBLISHPRESS_BASE_PATH', __DIR__);
    define('PUBLISHPRESS_FILE_PATH', PUBLISHPRESS_BASE_PATH . '/publishpress.php');
    define('PUBLISHPRESS_LIBRARIES_PATH', PUBLISHPRESS_BASE_PATH . '/libraries');

    if (! defined('PUBLISHPRESS_ACTION_PRIORITY_INIT')) {
        define('PUBLISHPRESS_ACTION_PRIORITY_INIT', 10);
    }

    if (! defined('PUBLISHPRESS_ACTION_PRIORITY_INIT_LATE')) {
        define('PUBLISHPRESS_ACTION_PRIORITY_INIT_LATE', 1100);
    }

    if (! defined('PUBLISHPRESS_ACTION_PRIORITY_INIT_ADMIN')) {
        define('PUBLISHPRESS_ACTION_PRIORITY_INIT_ADMIN', 1010);
    }

    $relativePath = PUBLISHPRESS_BASE_PATH;

    if (defined('PUBLISHPRESS_CUSTOM_VENDOR_PATH') && defined('PUBLISHPRESS_CUSTOM_VENDOR_URL')) {
        $relativePath = str_replace(PUBLISHPRESS_CUSTOM_VENDOR_PATH, '', $relativePath);
        define('PUBLISHPRESS_URL', PUBLISHPRESS_CUSTOM_VENDOR_URL . $relativePath . '/');
    } else {
        define('PUBLISHPRESS_URL', plugins_url('/', __FILE__));
    }

    $settingsPage = add_query_arg(
        [
            'page' => 'pp-modules-settings',
            'settings_module' => 'pp-modules-settings-settings',
        ],
        get_admin_url(null, 'admin.php')
    );
    define('PUBLISHPRESS_SETTINGS_PAGE', $settingsPage);

    /**
     * Use PUBLISHPRESS_BASE_PATH instead.
     *
     * @deprecated
     */
    define('PUBLISHPRESS_ROOT', PUBLISHPRESS_BASE_PATH);

    // Define the Priority for the notification/notification_status_change method
    // Added to allow users select a custom priority
    if (! defined('PP_NOTIFICATION_PRIORITY_STATUS_CHANGE')) {
        define('PP_NOTIFICATION_PRIORITY_STATUS_CHANGE', 10);
    }

    define('PUBLISHPRESS_NOTIF_POST_TYPE_WORKFLOW', 'psppnotif_workflow');

    if (file_exists(PUBLISHPRESS_BASE_PATH . '/vendor/autoload.php')) {
        require_once PUBLISHPRESS_BASE_PATH . '/vendor/autoload.php';
    }

    // Register the legacy autoloader
    if (! class_exists('\\PublishPress\\Legacy\\Auto_loader')) {
        require_once PUBLISHPRESS_LIBRARIES_PATH . '/Legacy/Auto_loader.php';
    }


    Auto_loader::register('PublishPress\\Core\\', __DIR__ . '/core/');
    Auto_loader::register('PublishPress\\Legacy\\', __DIR__ . '/libraries/Legacy');
    Auto_loader::register('PublishPress\\Notifications\\', __DIR__ . '/libraries/Notifications');
    Auto_loader::register('PublishPress\\Utility\\', __DIR__ . '/libraries/Utility');

    require_once PUBLISHPRESS_BASE_PATH . '/deprecated.php';


    define('PUBLISHPRESS_NOTIF_MODULE_PATH', __DIR__ . '/modules/improved-notifications');
    define('PUBLISHPRESS_NOTIF_TWIG_PATH', PUBLISHPRESS_BASE_PATH . '/twig');
    define('PUBLISHPRESS_NOTIF_LOADED', 1);

    // Load the improved notifications
    $plugin = new PublishPress\Notifications\Plugin();
    $plugin->init();

    if (is_admin() && ! defined('PUBLISHPRESS_SKIP_VERSION_NOTICES')) {
        $includesFile = __DIR__ . '/vendor/publishpress/wordpress-version-notices/includes.php';

        if (file_exists($includesFile)) {
            require_once $includesFile;
        }

        add_action(
            'plugins_loaded',
            function () {
                if (current_user_can('install_plugins')) {
                    add_filter(
                        \PPVersionNotices\Module\TopNotice\Module::SETTINGS_FILTER,
                        function ($settings) {
                            $settings['publishpress'] = [
                                'message' => 'You\'re using PublishPress Free. The Pro version has more features and support. %sUpgrade to Pro%s',
                                'link' => 'https://publishpress.com/links/publishpress-banner',
                                'screens' => [
                                    ['base' => 'publishpress_page_pp-modules-settings',],
                                    ['base' => 'publishpress_page_pp-manage-roles',],
                                    ['base' => 'publishpress_page_pp-notif-log',],
                                    ['base' => 'edit', 'id' => 'edit-psppnotif_workflow',],
                                    ['base' => 'post', 'id' => 'psppnotif_workflow',],
                                    ['base' => 'publishpress_page_pp-content-overview',],
                                    ['base' => 'toplevel_page_pp-calendar', 'id' => 'toplevel_page_pp-calendar',],
                                ]
                            ];

                            return $settings;
                        }
                    );

                    add_filter(
                        Module::SETTINGS_FILTER,
                        function ($settings) {
                            $settings['publishpress'] = [
                                'parent' => [
                                    'pp-calendar',
                                    'pp-content-overview',
                                    'edit.php?post_type=psppnotif_workflow',
                                    'pp-notif-log',
                                    'pp-manage-roles',
                                    'pp-modules-settings',
                                ],
                                'label' => 'Upgrade to Pro',
                                'link' => 'https://publishpress.com/links/publishpress-menu',
                            ];

                            return $settings;
                        }
                    );
                }
            }
        );
    }

    define('PP_LOADED', 1);
}

Youez - 2016 - github.com/yon3zu
LinuXploit