Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)始,故人唐宰相鲁公,🆚开府南服,余以布衣从戎。明年,别公漳水湄。后明年,公以事过张睢阳庙及颜杲卿所尝往来处,悲歌慷慨,卒不负其言而从之游。今其诗具在,可考也。😭 HEX
HEX
Server: Apache
System: Linux webm006.cluster120.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User: studionolh (122383)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/t/u/studionolh/www/wp-includes/Requests/Cookie/reusable-blocks/library.php.tar
home/studionolh/www/wp-content/themes/Divi/common/library.php000064400000003216152335526620020446 0ustar00<?php
/**
 * Local library functions.
 *
 * @package \ET\Common
 */

/**
 * Ajax :: Save item to the local library.
 */
function et_library_save_item() {
	et_core_security_check( 'publish_posts', 'et_library_save_item' );

	$post_id = et_save_item_to_local_library( $_POST );

	if ( ! $post_id || is_wp_error( $post_id ) ) {
		wp_send_json_error();
	}

	$post_type = isset( $_POST['post_type'] ) ? sanitize_text_field( $_POST['post_type'] ) : '';

	$data = array();

	switch ( $post_type ) {
		case 'et_theme_options':
			$item_library_local = et_pb_theme_options_library_local();
			$data               = $item_library_local->get_library_items( 'theme-options' );
			break;
	}

	wp_send_json_success( $data );
}

add_action( 'wp_ajax_et_library_save_item', 'et_library_save_item' );

/**
 * Save item to local library.
 *
 * @param array $item Item data.
 */
function et_save_item_to_local_library( $item ) {
	$item_name = $item['item_name'];
	$content   = $item['content'];
	$post_type = $item['post_type'];
	$built_for = isset( $item['builtFor'] ) ? $item['builtFor'] : '';

	$library_post_types = array( ET_THEME_OPTIONS_POST_TYPE, ET_CODE_SNIPPET_POST_TYPE );

	// Only allow to save library post types.
	if ( ! in_array( $post_type, $library_post_types, true ) ) {
		return false;
	}

	$new_post_data = array(
		'post_type'    => $post_type,
		'post_title'   => $item_name,
		'post_content' => $content,
		'post_status'  => 'publish',
	);

	if ( '' !== $built_for ) {
		$new_post_data['meta_input'] = array(
			'_built_for' => $built_for,
		);
	}

	$post_id = wp_insert_post( $new_post_data );

	et_local_library_set_item_taxonomy( $post_id, $item );

	return $post_id;
}
home/studionolh/www/wp-content/themes/Divi/common/i18n/library.php000064400000010430152335746430021224 0ustar00<?php
/**
 * Internationalization.
 *
 * @package Divi
 */

return [
	// phpcs:disable WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned, WordPress.Arrays.MultipleStatementAlignment.LongIndexSpaceBeforeDoubleArrow -- Trying to align will make the code less readable.
	'%s Name'                                         => esc_html__( '%s Name', 'et_builder' ),
	'Save %s'                                         => esc_html__( 'Save %s', 'et_builder' ),
	'Theme Options'                                   => esc_html__( 'Theme Options', 'et_builder' ),
	'CSS'                                             => esc_html__( 'CSS', 'et_builder' ),
	'CSS Snippet'                                     => esc_html__( 'CSS Snippet', 'et_builder' ),
	'Code Snippet'                                    => esc_html__( 'Code Snippet', 'et_builder' ),
	'HTML/JS Snippet'                                 => esc_html__( 'HTML/JS Snippet', 'et_builder' ),
	'Code'                                            => esc_html__( 'Code', 'et_builder' ),
	'Divi Library Snippet Name'                       => esc_html__( 'Divi Library Snippet Name', 'et_builder' ),
	'Save To Library'                                 => esc_html__( 'Save To Library', 'et_builder' ),
	'Save To Divi Cloud'                              => esc_html__( 'Save To Divi Cloud', 'et_builder' ),
	'Log In To Divi Cloud'                            => esc_html__( 'Log In To Divi Cloud', 'et_builder' ),
	'Portability'                                     => esc_html__( 'Portability', 'et_builder' ),
	'Export'                                          => esc_html__( 'Export', 'et_builder' ),
	'Import'                                          => esc_html__( 'Import', 'et_builder' ),
	'Options'                                         => esc_html__( 'Options', 'et_builder' ),
	'Choose File'                                     => esc_html__( 'Choose File', 'et_builder' ),
	'No File Selected'                                => esc_html__( 'No File Selected', 'et_builder' ),
	'Export %s Name'                                  => esc_html__( 'Export %s Name', 'et_builder' ),
	'Import To Cloud'                                 => esc_html__( 'Import To Cloud', 'et_builder' ),
	'Export %s'                                       => esc_html__( 'Export %s', 'et_builder' ),
	'Import %s'                                       => esc_html__( 'Import %s', 'et_builder' ),
	'Replace Existing Content'                        => esc_html__( 'Replace Existing Content', 'et_builder' ),
	'Download Backup Before Importing'                => esc_html__( 'Download Backup Before Importing', 'et_builder' ),
	'Save this %s to the Divi Library for later use.' => esc_html__( 'Save this %s to the Divi Library for later use.', 'et_builder' ),
	'Exporting your %s will create a JSON file that can be imported into a different area.' => esc_html__( 'Exporting your %s will create a JSON file that can be imported into a different area.', 'et_builder' ),
	'Save Selection Only'                             => esc_html__( 'Save Selection Only', 'et_builder' ),
	'Create New Category/Categories'                  => esc_html__( 'Create New Category/Categories', 'et_builder' ),
	'Create New Tag(s)'                               => esc_html__( 'Create New Tag(s)', 'et_builder' ),
	'Choose Library'                                  => esc_html__( 'Choose Library', 'et_builder' ),
	'My Cloud'                                        => esc_html__( 'My Cloud', 'et_builder' ),
	'My Divi Cloud'                                   => esc_html__( 'My Divi Cloud', 'et_builder' ),
	'Save Items To Divi Cloud'                        => esc_html__( 'Save Items To Divi Cloud', 'et_builder' ),
	'Save items to the Divi Cloud for later use'      => esc_html__( 'Save items to the Divi Cloud for later use.', 'et_builder' ),
	'nonLoggedIn$upsellCTADescription'                => esc_html__( 'When you save layouts to Divi Cloud, they become available on every website you build.', 'et_builder' ),
	'nonLoggedIn$upsellCTAButtonText'                 => esc_html__( 'Learn More', 'et_builder' ),
	'loggedIn$upsellCTADescription'                   => esc_html__( 'Upgrade to Unlimited Divi Cloud Storage!', 'et_builder' ),
	'loggedIn$upsellCTAButtonText'                    => esc_html__( 'Get Unlimited Storage', 'et_builder' ),
	// phpcs:enable
];
home/studionolh/www/wp-content/themes/Divi/core/i18n/library.php000064400000003225152336042300020652 0ustar00<?php
/**
 * I18n file.
 *
 * Translatable strings go here.
 *
 * @package Divi
 */

return [
	'Snippet'                  => esc_html__( 'Snippet', 'et_builder' ),
	'Code Snippet'             => esc_html__( 'Code Snippet', 'et_builder' ),
	'Divi Code Snippets'       => esc_html__( 'Divi Code Snippets', 'et_builder' ),
	'Code Snippets Library'    => esc_html__( 'Code Snippets Library', 'et_builder' ),
	'Code Snippet Details'     => esc_html__( 'Code Snippet Details', 'et_builder' ),
	'CSS Snippet'              => esc_html__( 'CSS Snippet', 'et_builder' ),
	'Edit Snippet'             => esc_html__( 'Edit Snippet', 'et_builder' ),
	'HTML/JS Snippet'          => esc_html__( 'HTML/JS Snippet', 'et_builder' ),
	'Snippets'                 => esc_html__( 'Snippets', 'et_builder' ),
	'importContextFail'        => esc_html__( 'This file should not be imported in this context.', 'et_builder' ),
	'Edit %s'                  => esc_html__( 'Edit %s', 'et_builder' ),
	'Save'                     => esc_html__( 'Save', 'et_builder' ),
	'Cancel'                   => esc_html__( 'Cancel', 'et_builder' ),
	'Import & Export Snippets' => esc_html__( 'Import & Export Snippets', 'et_builder' ),
	'Import & Export Snippet'  => esc_html__( 'Import & Export Snippet', 'et_builder' ),
	'Import Snippets'          => esc_html__( 'Import Snippets', 'et_builder' ),
	'Import Snippet'           => esc_html__( 'Import Snippet', 'et_builder' ),
	'Log In To Divi Cloud'     => esc_html__( 'Log In To Divi Cloud', 'et_builder' ),
	'Theme Options Library'    => esc_html__( 'Theme Options Library', 'et_builder' ),
	'Theme Options Details'    => esc_html__( 'Theme Options Details', 'et_builder' ),
];