Priority File Manager

📁 public_html
Base Directory:
/home/toolrmtm/crazyespresso.com/wp-admin
NameTypeSizeActions
📁 .. Folder -
📄 about.php File 15611
Edit Download
📄 admin-ajax.php File 5146
Edit Download
📄 admin-footer.php File 2834
Edit Download
📄 admin-functions.php File 479
Edit Download
📄 admin-header.php File 9336
Edit Download
📄 admin-post.php File 2021
Edit Download
📄 admin.php File 12646
Edit Download
📄 async-upload.php File 5604
Edit Download
📄 authorize-application.php File 10335
Edit Download
📄 comment.php File 11622
Edit Download
📄 contribute.php File 5998
Edit Download
📄 credits.php File 4483
Edit Download
📁 css Folder -
📄 custom-background.php File 489
Edit Download
📄 custom-header.php File 499
Edit Download
📄 customize.php File 11271
Edit Download
📄 edit-comments.php File 14729
Edit Download
📄 edit-form-advanced.php File 29527
Edit Download
📄 edit-form-blocks.php File 14947
Edit Download
📄 edit-form-comment.php File 8543
Edit Download
📄 edit-link-form.php File 6354
Edit Download
📄 edit-tag-form.php File 10688
Edit Download
📄 edit-tags.php File 22533
Edit Download
📄 edit.php File 19952
Edit Download
📄 erase-personal-data.php File 7505
Edit Download
📄 error_log File 81092
Edit Download
📄 export-personal-data.php File 7941
Edit Download
📄 export.php File 11288
Edit Download
📄 freedoms.php File 4916
Edit Download
📁 images Folder -
📄 import.php File 7766
Edit Download
📁 includes Folder -
📄 index.php File 7864
Edit Download
📄 install-helper.php File 6961
Edit Download
📄 install.php File 18192
Edit Download
📁 js Folder -
📄 link-add.php File 934
Edit Download
📄 link-manager.php File 4361
Edit Download
📄 link-parse-opml.php File 2784
Edit Download
📄 link.php File 2957
Edit Download
📄 load-scripts.php File 2070
Edit Download
📄 load-styles.php File 2995
Edit Download
📁 maint Folder -
📄 media-new.php File 3276
Edit Download
📄 media-upload.php File 3668
Edit Download
📄 media.php File 819
Edit Download
📄 menu-header.php File 10059
Edit Download
📄 menu.php File 17880
Edit Download
📄 moderation.php File 307
Edit Download
📄 ms-admin.php File 196
Edit Download
📄 ms-delete-site.php File 4613
Edit Download
📄 ms-edit.php File 216
Edit Download
📄 ms-options.php File 229
Edit Download
📄 ms-sites.php File 215
Edit Download
📄 ms-themes.php File 217
Edit Download
📄 ms-upgrade-network.php File 219
Edit Download
📄 ms-users.php File 215
Edit Download
📄 my-sites.php File 4858
Edit Download
📄 nav-menus.php File 49345
Edit Download
📁 network Folder -
📄 network.php File 5522
Edit Download
📄 options-discussion.php File 16297
Edit Download
📄 options-general.php File 22167
Edit Download
📄 options-head.php File 621
Edit Download
📄 options-media.php File 6530
Edit Download
📄 options-permalink.php File 21726
Edit Download
📄 options-privacy.php File 10190
Edit Download
📄 options-reading.php File 10174
Edit Download
📄 options-writing.php File 9323
Edit Download
📄 options.php File 13930
Edit Download
📄 plugin-editor.php File 14082
Edit Download
📄 plugin-install.php File 7124
Edit Download
📄 plugins.php File 30724
Edit Download
📄 post-new.php File 2768
Edit Download
📄 post.php File 10274
Edit Download
📄 press-this.php File 2396
Edit Download
📄 privacy-policy-guide.php File 3756
Edit Download
📄 privacy.php File 2854
Edit Download
📄 profile.php File 283
Edit Download
📄 revision.php File 5836
Edit Download
📄 setup-config.php File 17904
Edit Download
📄 site-editor.php File 12271
Edit Download
📄 site-health-info.php File 4088
Edit Download
📄 site-health.php File 10448
Edit Download
📄 term.php File 2249
Edit Download
📄 theme-editor.php File 17279
Edit Download
📄 theme-install.php File 23945
Edit Download
📄 themes.php File 49075
Edit Download
📄 tools.php File 3514
Edit Download
📄 update-core.php File 46539
Edit Download
📄 update.php File 13092
Edit Download
📄 upgrade-functions.php File 341
Edit Download
📄 upgrade.php File 6422
Edit Download
📄 upload.php File 15259
Edit Download
📁 user Folder -
📄 user-edit.php File 41328
Edit Download
📄 user-new.php File 24623
Edit Download
📄 users.php File 23846
Edit Download
📄 widgets-form-blocks.php File 5242
Edit Download
📄 widgets-form.php File 19719
Edit Download
📄 widgets.php File 1112
Edit Download

View File: ms-delete-site.php

<?php
/**
 * Multisite delete site panel.
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 3.0.0
 */

require_once __DIR__ . '/admin.php';

if ( ! is_multisite() ) {
	wp_die( __( 'Multisite support is not enabled.' ) );
}

if ( ! current_user_can( 'delete_site' ) ) {
	wp_die( __( 'Sorry, you are not allowed to delete this site.' ) );
}

if ( isset( $_GET['h'] ) && '' !== $_GET['h'] && false !== get_option( 'delete_blog_hash' ) ) {
	if ( hash_equals( get_option( 'delete_blog_hash' ), $_GET['h'] ) ) {
		wpmu_delete_blog( get_current_blog_id() );
		wp_die(
			sprintf(
				/* translators: %s: Network title. */
				__( 'Thank you for using %s, your site has been deleted. Happy trails to you until we meet again.' ),
				get_network()->site_name
			)
		);
	} else {
		wp_die( __( 'Sorry, the link you clicked is stale. Please select another option.' ) );
	}
}

$blog = get_site();
$user = wp_get_current_user();

// Used in the HTML title tag.
$title       = __( 'Delete Site' );
$parent_file = 'tools.php';

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

echo '<div class="wrap">';
echo '<h1>' . esc_html( $title ) . '</h1>';

if ( isset( $_POST['action'] ) && 'deleteblog' === $_POST['action'] && isset( $_POST['confirmdelete'] ) && '1' === $_POST['confirmdelete'] ) {
	check_admin_referer( 'delete-blog' );

	$hash = wp_generate_password( 20, false );
	update_option( 'delete_blog_hash', $hash, false );

	$url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );

	$switched_locale = switch_to_locale( get_locale() );

	/* translators: Do not translate USERNAME, URL_DELETE, SITENAME, SITEURL: those are placeholders. */
	$content = __(
		"Howdy ###USERNAME###,

You recently clicked the 'Delete Site' link on your site and filled in a
form on that page.

If you really want to delete your site, click the link below. You will not
be asked to confirm again so only click this link if you are absolutely certain:
###URL_DELETE###

If you delete your site, please consider opening a new site here some time in
the future! (But remember that your current site and username are gone forever.)

Thank you for using the site,
All at ###SITENAME###
###SITEURL###"
	);
	/**
	 * Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.
	 *
	 * The following strings have a special meaning and will get replaced dynamically:
	 *
	 *  - `###USERNAME###`   The current user's username.
	 *  - `###URL_DELETE###` The link to click on to confirm the site deletion.
	 *  - `###SITENAME###`   The name of the site.
	 *  - `###SITEURL###`    The URL to the site.
	 *
	 * @since 3.0.0
	 *
	 * @param string $content The email text.
	 */
	$content = apply_filters( 'delete_site_email_content', $content );

	$content = str_replace( '###USERNAME###', $user->user_login, $content );
	$content = str_replace( '###URL_DELETE###', $url_delete, $content );
	$content = str_replace( '###SITENAME###', get_network()->site_name, $content );
	$content = str_replace( '###SITEURL###', network_home_url(), $content );

	wp_mail(
		get_option( 'admin_email' ),
		sprintf(
			/* translators: %s: Site title. */
			__( '[%s] Delete My Site' ),
			wp_specialchars_decode( get_option( 'blogname' ) )
		),
		$content
	);

	if ( $switched_locale ) {
		restore_previous_locale();
	}
	?>

	<p><?php _e( 'Thank you. Please check your email for a link to confirm your action. Your site will not be deleted until this link is clicked.' ); ?></p>

	<?php
} else {
	?>
	<p>
	<?php
		printf(
			/* translators: %s: Network title. */
			__( 'If you do not want to use your %s site any more, you can delete it using the form below. When you click <strong>Delete My Site Permanently</strong> you will be sent an email with a link in it. Click on this link to delete your site.' ),
			get_network()->site_name
		);
	?>
	</p>
	<p><?php _e( 'Remember, once deleted your site cannot be restored.' ); ?></p>

	<form method="post" name="deletedirect">
		<?php wp_nonce_field( 'delete-blog' ); ?>
		<input type="hidden" name="action" value="deleteblog" />
		<p><input id="confirmdelete" type="checkbox" name="confirmdelete" value="1" /> <label for="confirmdelete"><strong>
		<?php
			printf(
				/* translators: %s: Site address. */
				__( "I'm sure I want to permanently delete my site, and I am aware I can never get it back or use %s again." ),
				$blog->domain . $blog->path
			);
		?>
		</strong></label></p>
		<?php submit_button( __( 'Delete My Site Permanently' ) ); ?>
	</form>
	<?php
}
echo '</div>';

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