403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/forum/wp-content/plugins/simplepress/admin/panel-plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/forum/wp-content/plugins/simplepress/admin/panel-plugins/spa-plugins.php
<?php
/*
Simple:Press
Admin Plugins
$LastChangedDate: 2018-11-02 13:31:02 -0500 (Fri, 02 Nov 2018) $
$Rev: 15796 $
*/

if ( ! defined( 'ABSPATH' ) ) {
	die('Access denied - you cannot directly call this file');
}

# Check Whether User Can Manage Plugins
# dont check for admin panels loaded by plugins - the plugins api will do that
$tab = (isset($_GET['tab'])) ? sanitize_text_field($_GET['tab']) : 'plugin-list';
if ($tab != 'plugin') {
    if (!SP()->auths->current_user_can('SPF Manage Plugins')) die();
}

require_once SP_PLUGIN_DIR.'/admin/panel-plugins/spa-plugins-display.php';
include_once SP_PLUGIN_DIR.'/admin/panel-plugins/support/spa-plugins-prepare.php';
include_once SP_PLUGIN_DIR.'/admin/panel-plugins/support/spa-plugins-save.php';
include_once SP_PLUGIN_DIR.'/admin/library/spa-tab-support.php';

if (SP()->core->status != 'ok') {
    include_once SPLOADINSTALL;
    die();
}

global $adminhelpfile;
$adminhelpfile = 'admin-plugins';
# --------------------------------------------------------------------

# was this individual plugin action or bulk action
# bulk actions use query args action1 and action2 while individual links use action
if (isset($_GET['action1'])) {
    $action = SP()->filters->str($_GET['action1']);
} elseif (isset($_GET['action2'])) {
    $action = SP()->filters->str($_GET['action2']);
} else {
    $action = (isset($_GET['action'])) ? $_GET['action'] : '';
}

$title  = (isset($_GET['title'])) ? urldecode(SP()->filters->str($_GET['title'])) : '';
$plugin = (isset($_GET['plugin'])) ? SP()->filters->str($_GET['plugin']) : '';

if ($action && $action == 'uninstall') {
    $msg = '<h3>'. esc_html(SP()->primitives->admin_text('Please confirm that you want to uninstall this plugin?')) . '</h3>';
    $msg.= '<b>'.esc_html(SP()->primitives->admin_text('Please be aware!')) . '</b>';
    $msg.= '<br><br>'.esc_html(SP()->primitives->admin_text('Uninstalling a plugin will also remove ANY components that the plugin created when first activated. This can include folders where items have been stored, database tables, permission settings etc.'));
    $msg.= '<br><br><b>'.esc_html(SP()->primitives->admin_text('If in doubt - deactivate the plugin instead')) .'</b>';
    $msg = apply_filters('sph_uninstall_message', $msg, $plugin);
?>
	<div id="dialog"></div>

    <script>
		(function(spj, $, undefined) {
			$(document).ready(function() {
				var execute = function() {
					window.location = '<?php echo esc_js(SPADMINPLUGINS."&plugin=$plugin&action=uninstall_confirmed&sfnonce=".wp_create_nonce('forum-adminform_plugins')); ?>';
				};
				var cancel = function() {
					window.location = '<?php echo esc_js(SPADMINPLUGINS."&plugin=$plugin&action=uninstall_cancelled&sfnonce=".wp_create_nonce('forum-adminform_plugins')); ?>';
				};

				$('#dialog').html('<?php wp_kses_post($msg); ?>');
				$('#dialog').dialog({
					modal: true,
					autoOpen: true,
					show: 'fold',
					hide: 'fold',
					width: '500',
					height: 'auto',
					draggable: false,
					resizable: false,
					title: '<?php echo esc_js($plugin); ?>',
					closeText: '',
					buttons: {
						"<?php SP()->primitives->admin_etext('Uninstall'); ?>": execute,
						"<?php SP()->primitives->admin_etext('Cancel'); ?>": cancel
					}
				});
			});
		}(window.spj = window.spj || {}, jQuery));
    </script>
<?php
    die();
}

# was there a plugin action?
if ($action && $action != 'uninstall_cancelled') spa_save_plugin_activation();

spa_panel_header();
spa_render_plugins_panel($tab);
spa_panel_footer();

if ($action) {
    $msg = '';
	if ($action == 'activate') $msg = $title.' '.SP()->primitives->admin_text('Plugin').' <strong>'.SP()->primitives->admin_text('Activated').'</strong>';
	if ($action == 'deactivate') $msg = $title.' '.SP()->primitives->admin_text('Plugin').' <strong>'.SP()->primitives->admin_text('Deactivated').'</strong>';
	if ($action == 'uninstall_confirmed') $msg = $title.' '.SP()->primitives->admin_text('Plugin').' <strong>'.SP()->primitives->admin_text('Deactivated and Uninstalled').'</strong>';
	if ($action == 'uninstall_cancelled') $msg = SP()->primitives->admin_text('Plugin uninstall cancelled');
	if ($action == 'delete') $msg = $title.' '.SP()->primitives->admin_text('Plugin').' <strong>'.SP()->primitives->admin_text('Deleted').'</strong>';
	$msg = apply_filters('sph_plugin_message', $msg);

    if ($action != 'uninstall_cancelled') {
?>
    	<script>
			(function(spj, $, undefined) {
				$(document).ready(function(){
					$("#sfmsgspot").fadeIn("fast");
					$("#sfmsgspot").html("<?php echo wp_kses_post($msg); ?>");
					$("#sfmsgspot").fadeOut(8000);
					window.location = '<?php echo esc_js(SPADMINPLUGINS); ?>';
				});
			}(window.spj = window.spj || {}, jQuery));
    	</script>
<?php
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit