GRAYBYTE WORDPRESS FILE MANAGER6211

Server IP : 149.255.58.128 / Your IP : 216.73.216.65
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/wheelch2/mobilityscootereftalia.com/wp-admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/wheelch2/mobilityscootereftalia.com/wp-admin//post.php
<?php
/**
 * Edit post administration panel.
 *
 * Manage Post actions: post, edit, delete, etc.
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

$parent_file  = 'edit.php';
$submenu_file = 'edit.php';

$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';

if ( isset( $_GET['post'] ) && isset( $_POST['post_ID'] ) && (int) $_GET['post'] !== (int) $_POST['post_ID'] ) {
	wp_die( __( 'A post ID mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
} elseif ( isset( $_GET['post'] ) ) {
	$post_id = (int) $_GET['post'];
} elseif ( isset( $_POST['post_ID'] ) ) {
	$post_id = (int) $_POST['post_ID'];
} else {
	$post_id = 0;
}
$post_ID = $post_id;

/**
 * @global string       $post_type        Global post type.
 * @global WP_Post_Type $post_type_object Global post type object.
 * @global WP_Post      $post             Global post object.
 */
global $post_type, $post_type_object, $post;

if ( $post_id ) {
	$post = get_post( $post_id );
}

if ( $post ) {
	$post_type        = $post->post_type;
	$post_type_object = get_post_type_object( $post_type );
}

if ( isset( $_POST['post_type'] ) && $post && $post_type !== $_POST['post_type'] ) {
	wp_die( __( 'A post type mismatch has been detected.' ), __( 'Sorry, you are not allowed to edit this item.' ), 400 );
}

if ( isset( $_POST['deletepost'] ) ) {
	$action = 'delete';
} elseif ( isset( $_POST['wp-preview'] ) && 'dopreview' === $_POST['wp-preview'] ) {
	$action = 'preview';
}

$sendback = wp_get_referer();
if ( ! $sendback ||
	str_contains( $sendback, 'post.php' ) ||
	str_contains( $sendback, 'post-new.php' ) ) {
	if ( 'attachment' === $post_type ) {
		$sendback = admin_url( 'upload.php' );
	} else {
		$sendback = admin_url( 'edit.php' );
		if ( ! empty( $post_type ) ) {
			$sendback = add_query_arg( 'post_type', $post_type, $sendback );
		}
	}
} else {
	$sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), $sendback );
}

switch ( $action ) {
	case 'post-quickdraft-save':
		// Check nonce and capabilities.
		$nonce     = $_REQUEST['_wpnonce'];
		$error_msg = false;

		// For output of the Quick Draft dashboard widget.
		require_once ABSPATH . 'wp-admin/includes/dashboard.php';

		if ( ! wp_verify_nonce( $nonce, 'add-post' ) ) {
			$error_msg = __( 'Unable to submit this form, please refresh and try again.' );
		}

		if ( ! current_user_can( get_post_type_object( 'post' )->cap->create_posts ) ) {
			exit;
		}

		if ( $error_msg ) {
			return wp_dashboard_quick_press( $error_msg );
		}

		$post = get_post( $_REQUEST['post_ID'] );
		check_admin_referer( 'add-' . $post->post_type );

		$_POST['comment_status'] = get_default_comment_status( $post->post_type );
		$_POST['ping_status']    = get_default_comment_status( $post->post_type, 'pingback' );

		// Wrap Quick Draft content in the Paragraph block.
		if ( ! str_contains( $_POST['content'], '<!-- wp:paragraph -->' ) ) {
			$_POST['content'] = sprintf(
				'<!-- wp:paragraph -->%s<!-- /wp:paragraph -->',
				str_replace( array( "\r\n", "\r", "\n" ), '<br />', $_POST['content'] )
			);
		}

		edit_post();
		wp_dashboard_quick_press();
		exit;

	case 'postajaxpost':
	case 'post':
		check_admin_referer( 'add-' . $post_type );
		$post_id = 'postajaxpost' === $action ? edit_post() : write_post();
		redirect_post( $post_id );
		exit;

	case 'edit':
		$editing = true;

		if ( empty( $post_id ) ) {
			wp_redirect( admin_url( 'post.php' ) );
			exit;
		}

		if ( ! $post ) {
			wp_die( __( 'You attempted to edit an item that does not exist. Perhaps it was deleted?' ) );
		}

		if ( ! $post_type_object ) {
			wp_die( __( 'Invalid post type.' ) );
		}

		if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ), true ) ) {
			wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
		}

		if ( ! current_user_can( 'edit_post', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to edit this item.' ) );
		}

		if ( 'trash' === $post->post_status ) {
			wp_die( __( 'You cannot edit this item because it is in the Trash. Please restore it and try again.' ) );
		}

		if ( ! empty( $_GET['get-post-lock'] ) ) {
			check_admin_referer( 'lock-post_' . $post_id );
			wp_set_post_lock( $post_id );
			wp_redirect( get_edit_post_link( $post_id, 'url' ) );
			exit;
		}

		$post_type = $post->post_type;
		if ( 'post' === $post_type ) {
			$parent_file   = 'edit.php';
			$submenu_file  = 'edit.php';
			$post_new_file = 'post-new.php';
		} elseif ( 'attachment' === $post_type ) {
			$parent_file   = 'upload.php';
			$submenu_file  = 'upload.php';
			$post_new_file = 'media-new.php';
		} else {
			if ( isset( $post_type_object ) && $post_type_object->show_in_menu && true !== $post_type_object->show_in_menu ) {
				$parent_file = $post_type_object->show_in_menu;
			} else {
				$parent_file = "edit.php?post_type=$post_type";
			}
			$submenu_file  = "edit.php?post_type=$post_type";
			$post_new_file = "post-new.php?post_type=$post_type";
		}

		$title = $post_type_object->labels->edit_item;

		/**
		 * Allows replacement of the editor.
		 *
		 * @since 4.9.0
		 *
		 * @param bool    $replace Whether to replace the editor. Default false.
		 * @param WP_Post $post    Post object.
		 */
		if ( true === apply_filters( 'replace_editor', false, $post ) ) {
			break;
		}

		if ( use_block_editor_for_post( $post ) ) {
			require ABSPATH . 'wp-admin/edit-form-blocks.php';
			break;
		}

		if ( ! wp_check_post_lock( $post->ID ) ) {
			$active_post_lock = wp_set_post_lock( $post->ID );

			if ( 'attachment' !== $post_type ) {
				wp_enqueue_script( 'autosave' );
			}
		}

		$post = get_post( $post_id, OBJECT, 'edit' );

		if ( post_type_supports( $post_type, 'comments' ) ) {
			wp_enqueue_script( 'admin-comments' );
			enqueue_comment_hotkeys_js();
		}

		require ABSPATH . 'wp-admin/edit-form-advanced.php';

		break;

	case 'editattachment':
		check_admin_referer( 'update-post_' . $post_id );

		// Don't let these be changed.
		unset( $_POST['guid'] );
		$_POST['post_type'] = 'attachment';

		// Update the thumbnail filename.
		$newmeta          = wp_get_attachment_metadata( $post_id, true );
		$newmeta['thumb'] = wp_basename( $_POST['thumb'] );

		wp_update_attachment_metadata( $post_id, $newmeta );

		// Intentional fall-through to trigger the edit_post() call.
	case 'editpost':
		check_admin_referer( 'update-post_' . $post_id );

		$post_id = edit_post();

		// Session cookie flag that the post was saved.
		if ( isset( $_COOKIE['wp-saving-post'] ) && $_COOKIE['wp-saving-post'] === $post_id . '-check' ) {
			setcookie( 'wp-saving-post', $post_id . '-saved', time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() );
		}

		redirect_post( $post_id ); // Send user on their way while we keep working.

		exit;

	case 'trash':
		check_admin_referer( 'trash-post_' . $post_id );

		if ( ! $post ) {
			wp_die( __( 'The item you are trying to move to the Trash no longer exists.' ) );
		}

		if ( ! $post_type_object ) {
			wp_die( __( 'Invalid post type.' ) );
		}

		if ( ! current_user_can( 'delete_post', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) );
		}

		$user_id = wp_check_post_lock( $post_id );
		if ( $user_id ) {
			$user = get_userdata( $user_id );
			/* translators: %s: User's display name. */
			wp_die( sprintf( __( 'You cannot move this item to the Trash. %s is currently editing.' ), $user->display_name ) );
		}

		if ( ! wp_trash_post( $post_id ) ) {
			wp_die( __( 'Error in moving the item to Trash.' ) );
		}

		wp_redirect(
			add_query_arg(
				array(
					'trashed' => 1,
					'ids'     => $post_id,
				),
				$sendback
			)
		);
		exit;

	case 'untrash':
		check_admin_referer( 'untrash-post_' . $post_id );

		if ( ! $post ) {
			wp_die( __( 'The item you are trying to restore from the Trash no longer exists.' ) );
		}

		if ( ! $post_type_object ) {
			wp_die( __( 'Invalid post type.' ) );
		}

		if ( ! current_user_can( 'delete_post', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) );
		}

		if ( ! wp_untrash_post( $post_id ) ) {
			wp_die( __( 'Error in restoring the item from Trash.' ) );
		}

		$sendback = add_query_arg(
			array(
				'untrashed' => 1,
				'ids'       => $post_id,
			),
			$sendback
		);
		wp_redirect( $sendback );
		exit;

	case 'delete':
		check_admin_referer( 'delete-post_' . $post_id );

		if ( ! $post ) {
			wp_die( __( 'This item has already been deleted.' ) );
		}

		if ( ! $post_type_object ) {
			wp_die( __( 'Invalid post type.' ) );
		}

		if ( ! current_user_can( 'delete_post', $post_id ) ) {
			wp_die( __( 'Sorry, you are not allowed to delete this item.' ) );
		}

		if ( 'attachment' === $post->post_type ) {
			$force = ( ! MEDIA_TRASH );
			if ( ! wp_delete_attachment( $post_id, $force ) ) {
				wp_die( __( 'Error in deleting the attachment.' ) );
			}
		} else {
			if ( ! wp_delete_post( $post_id, true ) ) {
				wp_die( __( 'Error in deleting the item.' ) );
			}
		}

		wp_redirect( add_query_arg( 'deleted', 1, $sendback ) );
		exit;

	case 'preview':
		check_admin_referer( 'update-post_' . $post_id );

		$url = post_preview();

		wp_redirect( $url );
		exit;

	case 'toggle-custom-fields':
		check_admin_referer( 'toggle-custom-fields', 'toggle-custom-fields-nonce' );

		$current_user_id = get_current_user_id();
		if ( $current_user_id ) {
			$enable_custom_fields = (bool) get_user_meta( $current_user_id, 'enable_custom_fields', true );
			update_user_meta( $current_user_id, 'enable_custom_fields', ! $enable_custom_fields );
		}

		wp_safe_redirect( wp_get_referer() );
		exit;

	default:
		/**
		 * Fires for a given custom post action request.
		 *
		 * The dynamic portion of the hook name, `$action`, refers to the custom post action.
		 *
		 * @since 4.6.0
		 *
		 * @param int $post_id Post ID sent with the request.
		 */
		do_action( "post_action_{$action}", $post_id );

		wp_redirect( admin_url( 'edit.php' ) );
		exit;
} // End switch.

require_once ABSPATH . 'wp-admin/admin-footer.php';

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 22 2025 21:14:42
1032 / wheelch2
0755
css
--
October 16 2024 01:01:17
1032 / wheelch2
0755
images
--
October 16 2024 01:01:17
1032 / wheelch2
0755
includes
--
April 09 2025 03:36:18
1032 / wheelch2
0755
js
--
October 16 2024 01:01:17
1032 / wheelch2
0755
maint
--
October 16 2024 01:01:17
1032 / wheelch2
0755
network
--
October 16 2024 01:01:17
1032 / wheelch2
0755
user
--
October 16 2024 01:01:17
1032 / wheelch2
0755
wp-backup
--
May 20 2025 03:29:06
1032 / wheelch2
0755
.htaccess
1.97 KB
May 20 2025 06:12:06
1032 / wheelch2
0444
about.php
18.454 KB
May 01 2025 03:37:15
1032 / wheelch2
0644
admin-ajax.php
5.025 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
admin-footer.php
2.768 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
admin-functions.php
0.468 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin-header.php
9.117 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin-post.php
1.974 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
admin.php
12.302 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
async-upload.php
4.866 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
authorize-application.php
10.093 KB
September 14 2023 00:54:19
1032 / wheelch2
0644
comment.php
11.35 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
contribute.php
5.593 KB
February 26 2024 23:51:12
1032 / wheelch2
0644
credits.php
4.113 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
custom-background.php
0.478 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
custom-header.php
0.487 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
customize.php
10.912 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-comments.php
14.381 KB
September 17 2023 15:33:17
1032 / wheelch2
0644
edit-form-advanced.php
28.835 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-form-blocks.php
14.368 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-form-comment.php
8.343 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-link-form.php
6.205 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-tag-form.php
10.438 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
edit-tags.php
22.005 KB
February 12 2025 04:39:10
1032 / wheelch2
0644
edit.php
19.484 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
erase-personal-data.php
7.329 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
error_log
0.504 KB
May 20 2025 11:43:04
1032 / wheelch2
0644
export-personal-data.php
7.755 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
export.php
11.023 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
freedoms.php
4.536 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
import.php
7.584 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
index.php
7.68 KB
September 14 2023 00:54:19
1032 / wheelch2
0644
inputs.php
5.724 KB
May 20 2025 06:12:06
1032 / wheelch2
0444
install-helper.php
6.798 KB
November 20 2022 14:10:15
1032 / wheelch2
0644
install.php
17.943 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-add.php
0.912 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-manager.php
4.259 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
link-parse-opml.php
2.634 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
link.php
2.888 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
load-scripts.php
2.021 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
load-styles.php
2.925 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
media-new.php
3.185 KB
February 23 2023 10:38:21
1032 / wheelch2
0644
media-upload.php
3.582 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
media.php
0.8 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
menu-header.php
9.823 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
menu.php
16.967 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
moderation.php
0.3 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-admin.php
0.191 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-delete-site.php
4.193 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
ms-edit.php
0.211 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-options.php
0.224 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
ms-sites.php
0.21 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-themes.php
0.212 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-upgrade-network.php
0.214 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
ms-users.php
0.21 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
my-sites.php
4.744 KB
September 05 2023 19:26:26
1032 / wheelch2
0644
nav-menus.php
48.259 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
network.php
5.393 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-discussion.php
15.397 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-general.php
21.577 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-head.php
0.606 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-media.php
6.353 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-permalink.php
21.209 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-privacy.php
9.951 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
options-reading.php
10.025 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options-writing.php
9.099 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
options.php
13.445 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
plugin-editor.php
13.663 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
plugin-install.php
6.957 KB
February 20 2024 07:27:06
1032 / wheelch2
0644
plugins.php
30.004 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
post-new.php
2.703 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
post.php
9.97 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
press-this.php
2.34 KB
February 26 2024 20:35:08
1032 / wheelch2
0644
privacy-policy-guide.php
3.668 KB
November 22 2023 17:44:24
1032 / wheelch2
0644
privacy.php
2.522 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
profile.php
0.276 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
revision.php
5.714 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
setup-config.php
17.484 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-editor.php
11.831 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-health-info.php
3.992 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
site-health.php
10.198 KB
July 16 2024 17:39:08
1032 / wheelch2
0644
term.php
2.196 KB
June 01 2022 18:14:10
1032 / wheelch2
0644
theme-editor.php
15.59 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
theme-install.php
23.365 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
themes.php
48.121 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
tools.php
3.432 KB
February 23 2023 10:38:21
1032 / wheelch2
0644
update-core.php
45.429 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
update.php
12.785 KB
January 30 2024 14:23:12
1032 / wheelch2
0644
upgrade-functions.php
0.333 KB
February 06 2020 06:33:11
1032 / wheelch2
0644
upgrade.php
6.325 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
upload.php
14.843 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
user-edit.php
39.789 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
user-new.php
24.046 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
users.php
23.279 KB
April 16 2025 03:38:58
1032 / wheelch2
0644
widgets-form-blocks.php
4.967 KB
November 13 2024 04:45:47
1032 / wheelch2
0644
widgets-form.php
19.165 KB
January 16 2024 17:31:13
1032 / wheelch2
0644
widgets.php
1.086 KB
March 22 2022 19:59:04
1032 / wheelch2
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF