Linux ih01.iridiumhosting.com 5.14.0-611.5.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 11 08:09:09 EST 2025 x86_64
LiteSpeed
Server IP : 67.227.241.211 & Your IP : 216.73.216.226
Domains :
Cant Read [ /etc/named.conf ]
User : dustinhy
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
dustinhy /
.www_backup /
themes /
Divi /
common /
Delete
Unzip
Name
Size
Permission
Date
Action
constants
[ DIR ]
drwxr-xr-x
2025-11-24 15:20
i18n
[ DIR ]
drwxr-xr-x
2025-11-24 15:20
images
[ DIR ]
drwxr-xr-x
2025-11-24 15:20
scripts
[ DIR ]
drwxr-xr-x
2025-11-24 15:20
utils
[ DIR ]
drwxr-xr-x
2025-11-24 15:20
README.md
172
B
-rw-r--r--
2025-11-24 15:20
admin.php
3.28
KB
-rw-r--r--
2025-11-24 15:20
init.php
3.26
KB
-rw-r--r--
2025-11-24 15:20
library.php
1.64
KB
-rw-r--r--
2025-11-24 15:20
Save
Rename
<?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; }