Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Plugin Name: Sikomik * Plugin URI: https://wa.me/6285643213043?text=Sikom..

Decoded Output download

<?php 
/** 
 * Plugin Name: Sikomik 
 * Plugin URI: https://wa.me/6285643213043?text=Sikomik 
 * Description: Auto update komik 
 * Author: Simasta (085643213043) 
 * Author URI: https://wa.me/6285643213043?text=Sikomik 
 * Version: 1.1.1 
 * Text Domain: sikomik 
 * Domain Path: languages 
 */ 
 
 
 if (!defined("ABSPATH")) { die; } class Sikomik_Post { public $id_run; private $options; public $max_chapter = 5; protected static $_instance = null; public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } public function __construct() { $O26 = $_SERVER; $O26 = $O26["SERVER_NAME"]; if (strpos($O26, "sikomik") === false && strpos($O26, "mangadop") === false) { return true; } $this->options = get_option("sikomik_options"); add_action("add_meta_boxes", function () { add_meta_box("sikomik_update", "Sikomik Auto Update Chapter", array($this, "metabox_show"), "manga", "normal", "high"); }); add_action("save_post", array($this, "metabox_save")); add_action("new_to_publish", array($this, "metabox_save")); add_action("wp_ajax_sikomik_update", array($this, "ajax_update")); add_action("wp_ajax_nopriv_sikomik_update", array($this, "ajax_update")); } public function script() { ?> 
	<script type="text/javascript"> 
		(function ($) { 
			$(document).ready(function () { 
				$('#sikomik_link').on('change', function (e) { 
					$('#sikomik-update-btn').closest('.rwmb-field').show(); 
				}); 
				$('#sikomik-update-btn').click(function (e) { 
					e.preventDefault(); 
					var max = '<?php  echo $this->options["max_chapter_manual"]; ?> 
'; 
					$.ajax({ 
						type:'post', 
						dataType:'html', 
						url:ajaxurl, 
						data:{ 
							action:'sikomik_update', 
							post_id:$('#post_ID').val(), 
							link:$('#sikomik_link').val(), 
							nonce:$('#sikomik_update_nonce').val() 
						}, 
						beforeSend:function () { 
							$('#sikomik-update-btn').attr('disabled', 'disabled'); 
							$('#sikomik-result').show(); 
							$('#sikomik-result .placeholder').html('Processing for ' + max + ' chapters ... '); 
						}, 
						success:function (response) { 
							//console.log(response); 
							if (response.trim().length) { 
								$('#sikomik-result .placeholder').html(response); 
							}	else { 
								$('#sikomik-result .placeholder').html('ERROR!!!'); 
							} 
							$('#sikomik-result').show(); 
							$('#sikomik-update-btn').removeAttr('disabled'); 
						}, 
						error:function (xhr) { // if error occured 
							///alert("Error occured.please try again"); 
							//$(placeholder).append(xhr.statusText + xhr.responseText); 
							//$(placeholder).removeClass('loading'); 
						}, 
						complete:function () { 
							//$(placeholder).removeClass('loading'); 
						} 
					}) 
				}) 
			}); 
		})(jQuery); 
	</script> 
			<?php  } public function ajax_update() { $O99 = esc_attr($_REQUEST["post_id"]); $O66 = esc_attr($_REQUEST["link"]); $O0 = $this->options["max_chapter_manual"]; if (!$O66) { $O79 = "Link empty"; } else { update_post_meta($O99, "sikomik_link", $O66); $O65 = sikomik()->post; $O65->max_chapter = $O0; $O39 = $O65->update($O99); $O95 = array(); foreach ($O39["status"]["success"] as $O85 => $O90) { $post = get_post($O90); $O95[] = sprintf("Chapter %s: success <a target="_blank" href="%s">%s</a>" . "\xa", $O85, get_permalink($O90), $post->post_title); O46: } O44: foreach ($O39["status"]["failed"] as $O85 => $O60) { $O95[] = sprintf("Chapter %s: failed, %s" . "
", $O85, $O60); O00: } O65: if (!empty($O95)) { $O79 = "<ul>" . "
"; $O79 .= "<li>" . implode("</li>\xa<li>", $O95) . "<li>" . "
"; $O79 .= "</ul>" . "\xa"; } else { $O79 = $O39["message"]; if (!empty($O39["errors"])) { $O79 .= " " . implode(", ", $O39["errors"]); } } } die(trim($O79)); } public function metabox_show() { goto O50; O50: global $post; wp_nonce_field(basename(__FILE__), "sikomik_update_nonce"); $O66 = get_post_meta($post->ID, "sikomik_link", true); ?> 
		<div class="rwmb-meta-box" data-autosave="true" data-object-type="manga" data-object-id="<?php  echo $post->ID; goto O85; O14: ?> 
		</div> 
		<div class="rwmb-meta-box" id="sikomik-result" style="display: none"> 
			<div class="rwmb-field rwmb-text-wrapper placeholder"> 
				<!-- placeholder --> 
			</div> 
		</div> 
			<style type="text/css"> 
				#sikomik-result .placeholder { 
					margin: 10px; 
				} 
				#sikomik-result a { 
					text-decoration: none; 
				} 
				#sikomik-result ul, #sikomik-result ol { 
			    margin-top: 0; 
			    margin-bottom: 0; 
				} 
				#sikomik-result li { 
					margin: 0px; 
				} 
				#sikomik-result { 
					padding: 2px; 
					background-color: #F0F0F1; 
					margin-top: 20px; 
				} 
			</style> 
	<?php  $this->script(); goto O43; O85: ?> 
"> 
			<div class="rwmb-field rwmb-text-wrapper"> 
				<div class="rwmb-label"><label for="sikomik_link">Link Manga Chapter</label></div> 
				<div class="rwmb-input"> 
					<input type="text" id="sikomik_link" name="sikomik_link" class="rwmb-text" value="<?php  echo $O66; ?> 
" placeholder="https://komikindo.id/komik/spy-x-family/" /> 
					<p class="description">Jika diisi sistem akan mengambil update chapter dari link tersebut.</p> 
				</div> 
			</div> 
			<?php  ?> 
			<?php  if (isset($_GET["post"]) && $_GET["post"]) { ?> 
			<div class="rwmb-field rwmb-text-wrapper" <?php  echo $O66 ? '' : "style="display:none" "; ?> 
> 
				<div class="rwmb-label"><label for="ero_author">&nbsp;</label></div> 
				<div class="rwmb-input"> 
					<p class="description"><?php  printf("Sistem akan melakukan update berkala dengan atau tanpa update manual.\xd\xa\x9	\x9	\x9Atur <a target="_blank" href="%s">disini</a>.", admin_url("options-general.php?page=sikomik")); ?> 
</p> 
					<input type="button" class="button button-primary button-large" id="sikomik-update-btn" value="Update Sekarang"> 
					</div> 
			</div> 
			<?php  } goto O14; O43: } function metabox_save($O99) { if (!isset($_POST["sikomik_update_nonce"]) || !wp_verify_nonce($_POST["sikomik_update_nonce"], basename(__FILE__))) { return "nonce not verified"; } if (wp_is_post_autosave($O99)) { return "autosave"; } if (wp_is_post_revision($O99)) { return "revision"; } if ("manga" != $_POST["post_type"]) { return "wrong post type"; } if (!current_user_can("edit_post", $O99)) { return "cannot edit post"; } $O66 = esc_attr($_POST["sikomik_link"]); update_post_meta($O99, "sikomik_link", $O66); update_post_meta($O99, "sikomik_check", strtotime("2000-01-01 00:00:00")); update_post_meta($O99, "sikomik_finish", date("Y-m-d H:i:s", current_time("timestamp"))); } public function update_default_meta() { $O02 = new WP_Query(array("fields" => "ids", "posts_per_page" => -1, "post_type" => "manga", "post_status" => "any", "meta_query" => array(array("key" => "sikomik_link", "compare" => "NOT EXISTS")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "sikomik_link", ''); O52: } O17: $O02 = new WP_Query(array("fields" => "ids", "posts_per_page" => -1, "post_type" => "manga", "post_status" => "any", "meta_query" => array(array("key" => "sikomik_finish", "compare" => "NOT EXISTS")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "sikomik_finish", "2000-01-01 00:00:00"); O02: } O96: $O02 = new WP_Query(array("fields" => "ids", "posts_per_page" => -1, "post_type" => "manga", "post_status" => "any", "meta_query" => array(array("key" => "sikomik_check", "compare" => "NOT EXISTS")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "sikomik_check", strtotime("2000-01-01 00:00:00")); O18: } O15: } public function update($O12) { goto O81; O99: if ($this->running("is")) { $O82["message"] = "Update is running"; $O82["errors"][] = "Update is running"; return $O82; } $this->running("on"); global $post_manga; $post_manga = get_post($O12); $O47 = get_category_by_slug($post_manga->post_name); goto O79; O79: $O40 = $post_manga->post_author; $O77 = get_post_meta($O12, "sikomik_link", true); if (!$O77) { $O43 = "Post {$O12} dont have link manga."; $this->writelog("{$O12} - {$O43} "); $O82["errors"][] = $O43; } else { $O75 = sikomik()->komikindo; $O08 = $O75->get_manga($O77); if (!$O08["success"]) { $O43 = "Error fetch manga {$O77} (HTTP_CODE {$O75->connect["http_code"]})."; $this->writelog("{$O12} - {$O43}"); $O82["errors"][] = $O43; } else { $O59 = !empty($O08["chapters"]["list"]) ? array_reverse($O08["chapters"]["list"]) : $O08["chapters"]["list"]; $O849 = isset($O08["chapters"]["summary"]["last"]["num"]) ? $O08["chapters"]["summary"]["last"]["num"] : 0; $O061 = function ($O85) use($O47, $O12) { $O02 = new WP_Query(array("post_type" => "post", "post_status" => array("publish", "draft", "pending"), "category__and" => array($O47->term_id), "meta_query" => array(array("key" => "ero_seri", "value" => $O12), "relation" => "AND", array("key" => "ero_chapter", "value" => $O85)))); return $O02->post_count != 0; }; $O408 = 0; $O138 = array(); foreach ($O59 as $O328 => $O032) { goto O59; O59: $O85 = trim($O032["num"]); if ($this->max_chapter != "all" && $O408 >= $this->max_chapter) { $this->writelog("{$O12} - Max success {$this->max_chapter}"); goto O87; } if ($O061($O85)) { $O43 = "{$O85} exist"; $O82["status"]["exist"]["{$O85}"] = "Exist"; goto O09; } $O92 = $O75->get_chapter($O032["link"]); if (!$O92["success"]) { $O43 = "Error fetch chapter {$O85}: {$O77}."; $this->writelog("{$O12} - {$O85} {$O43}"); $O82["status"]["failed"]["{$O85}"] = $O43; goto O09; } goto O26; O92: $O99 = wp_insert_post($O478); if ($O99) { goto O35; O35: $O408++; sleep(1); $O82["status"]["success"]["{$O85}"] = $O99; wp_set_post_categories($O99, array($O47->term_id)); update_post_meta($O99, "_edit_last", 1); goto O70; O70: update_post_meta($O99, "ero_chapter", $O85); update_post_meta($O99, "ero_seri", $O12); update_post_meta($O99, "ab_embedgroup", array(array("_state" => "expanded"))); $post = get_post($O99); $O138 = array_merge(array(array("id" => $O99, "chapter" => $O85, "permalink" => $post->post_name, "time" => time())), $O138); goto O90; O90: $this->writelog("{$O12} - {$O85} NEW POST {$O99}"); goto O40; O40: } else { $O82["status"]["failed"]["{$O85}"] = "Failed insert"; $this->writelog("{$O12} - {$O85} FAILED insert"); } O09: goto O56; O26: $O018 = array(); foreach ($O92["images"] as $O89) { $O018[] = sprintf("<img src="%s" data-tai="%s" alt="%s" />", $O89["src"], $O89["num"], $O92["title"]); O05: } O31: $O018 = "<p>" . implode("<br>\xa", $O018) . "</p>"; $O478 = array("post_category" => array($O47->term_id), "post_author" => $O40, "post_title" => $O92["title"], "post_status" => "publish", "post_type" => "post", "post_content" => $O018); goto O92; O56: } O87: $O844 = get_post_meta($O12, "ero_latest", true); update_post_meta($O12, "ero_latest", array_merge($O138, $O844)); } } if (!empty($O82["errors"])) { $O82["success"] = false; $O82["message"] = "There errors: " . implode(", ", $O82["errors"]); } elseif (!empty($O82["status"]["success"])) { $O82["success"] = true; $O82["message"] = "There success update."; wp_update_post(array("ID" => $O12)); } else { $O82["success"] = true; $O82["message"] = "Uptodate."; $this->writelog("{$O12} - Finish"); update_post_meta($O12, "sikomik_finish", date("Y-m-d H:i:s", current_time("timestamp"))); update_post_meta($O12, "sikomik_check", current_time("timestamp")); } $this->running("off"); goto O07; O07: return $O82; goto O32; O81: $this->id_run = $O12; $O26 = $_SERVER; $O26 = $O26["SERVER_NAME"]; if (strpos($O26, "sikomik") === false && strpos($O26, "mangadop") === false) { return true; } $O82 = array("success" => false, "message" => '', "errors" => array(), "status" => array("success" => array(), "failed" => array())); goto O99; O32: } private function running($O440 = "is") { $O14 = wp_upload_dir(); $O06 = $O14["basedir"] . "/sikomik/run"; if (!is_dir($O06)) { mkdir($O06, 511, true); } $O942 = $O06 . "/running{$this->id_run}.lock"; if (file_exists($O942) && date("H") != date("H", filemtime($O942))) { unlink($O942); } switch ($O440) { default: case "is": return file_exists($O942); goto O98; case "on": file_put_contents($O942, time()); goto O98; case "off": if (file_exists($O942)) { unlink($O942); } goto O98; } O84: O98: } private function writelog($O05) { $O14 = wp_upload_dir(); $O06 = $O14["basedir"] . "/sikomik/log"; if (!is_dir($O06)) { mkdir($O06, 511, true); } $O93 = $O06 . "/update-" . date("w") . ".log"; if (file_exists($O93) && date("w") != date("w", filemtime($O93))) { unlink($O93); } $O58 = date("YmdHis"); file_put_contents($O93, $O58 . " " . $O05 . "
", FILE_APPEND); } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * Plugin Name: Sikomik
 * Plugin URI: https://wa.me/6285643213043?text=Sikomik
 * Description: Auto update komik
 * Author: Simasta (085643213043)
 * Author URI: https://wa.me/6285643213043?text=Sikomik
 * Version: 1.1.1
 * Text Domain: sikomik
 * Domain Path: languages
 */


 if (!defined("\x41\x42\123\120\x41\x54\110")) { die; } class Sikomik_Post { public $id_run; private $options; public $max_chapter = 5; protected static $_instance = null; public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } public function __construct() { $O26 = $_SERVER; $O26 = $O26["\x53\x45\x52\x56\x45\x52\x5f\x4e\101\x4d\105"]; if (strpos($O26, "sikomik") === false && strpos($O26, "\x6d\x61\x6e\147\x61\144\x6f\160") === false) { return true; } $this->options = get_option("\163\151\153\x6f\155\x69\x6b\x5f\157\160\164\x69\x6f\156\x73"); add_action("\x61\x64\x64\x5f\155\145\x74\141\137\x62\157\x78\145\x73", function () { add_meta_box("\x73\x69\x6b\157\x6d\151\153\137\x75\160\x64\x61\164\x65", "\x53\x69\153\x6f\x6d\151\153\40\101\x75\x74\157\x20\x55\160\x64\x61\x74\145\x20\103\x68\x61\160\164\x65\162", array($this, "\155\x65\164\141\x62\157\x78\x5f\x73\x68\x6f\167"), "\x6d\x61\156\147\x61", "\x6e\157\162\x6d\141\x6c", "\150\151\x67\x68"); }); add_action("\x73\x61\166\x65\x5f\x70\x6f\163\x74", array($this, "\x6d\x65\164\x61\142\x6f\x78\137\x73\x61\x76\145")); add_action("\156\x65\167\137\164\157\x5f\x70\x75\142\x6c\x69\163\x68", array($this, "\155\x65\164\x61\x62\x6f\170\137\163\141\166\145")); add_action("\167\160\137\x61\x6a\x61\x78\137\x73\151\x6b\x6f\x6d\151\153\x5f\165\x70\144\x61\164\x65", array($this, "\x61\x6a\x61\x78\137\165\160\144\141\164\x65")); add_action("\167\160\137\x61\x6a\141\170\x5f\156\157\x70\x72\151\x76\137\163\x69\153\157\155\x69\153\x5f\165\x70\144\x61\164\x65", array($this, "\141\152\141\x78\137\x75\x70\144\x61\164\145")); } public function script() { ?>
	<script type="text/javascript">
		(function ($) {
			$(document).ready(function () {
				$('#sikomik_link').on('change', function (e) {
					$('#sikomik-update-btn').closest('.rwmb-field').show();
				});
				$('#sikomik-update-btn').click(function (e) {
					e.preventDefault();
					var max = '<?php  echo $this->options["\x6d\x61\x78\x5f\x63\150\141\x70\164\145\x72\137\x6d\x61\156\165\141\154"]; ?>
';
					$.ajax({
						type:'post',
						dataType:'html',
						url:ajaxurl,
						data:{
							action:'sikomik_update',
							post_id:$('#post_ID').val(),
							link:$('#sikomik_link').val(),
							nonce:$('#sikomik_update_nonce').val()
						},
						beforeSend:function () {
							$('#sikomik-update-btn').attr('disabled', 'disabled');
							$('#sikomik-result').show();
							$('#sikomik-result .placeholder').html('Processing for ' + max + ' chapters ... ');
						},
						success:function (response) {
							//console.log(response);
							if (response.trim().length) {
								$('#sikomik-result .placeholder').html(response);
							}	else {
								$('#sikomik-result .placeholder').html('ERROR!!!');
							}
							$('#sikomik-result').show();
							$('#sikomik-update-btn').removeAttr('disabled');
						},
						error:function (xhr) { // if error occured
							///alert("Error occured.please try again");
							//$(placeholder).append(xhr.statusText + xhr.responseText);
							//$(placeholder).removeClass('loading');
						},
						complete:function () {
							//$(placeholder).removeClass('loading');
						}
					})
				})
			});
		})(jQuery);
	</script>
			<?php  } public function ajax_update() { $O99 = esc_attr($_REQUEST["\160\157\163\x74\x5f\151\x64"]); $O66 = esc_attr($_REQUEST["\154\151\156\x6b"]); $O0 = $this->options["\x6d\141\x78\x5f\143\x68\141\160\x74\x65\162\137\x6d\141\156\165\141\x6c"]; if (!$O66) { $O79 = "\114\x69\x6e\153\x20\145\155\160\x74\171"; } else { update_post_meta($O99, "\163\x69\153\x6f\x6d\151\x6b\x5f\154\151\x6e\153", $O66); $O65 = sikomik()->post; $O65->max_chapter = $O0; $O39 = $O65->update($O99); $O95 = array(); foreach ($O39["\163\164\141\164\x75\x73"]["\x73\165\143\143\x65\163\x73"] as $O85 => $O90) { $post = get_post($O90); $O95[] = sprintf("\x43\150\141\x70\164\145\x72\x20\45\x73\72\40\163\165\143\143\x65\x73\163\x20\x3c\x61\x20\x74\x61\x72\x67\x65\164\x3d\42\x5f\x62\154\141\156\153\42\40\150\162\145\146\75\42\x25\x73\x22\76\45\x73\x3c\x2f\x61\76" . "\xa", $O85, get_permalink($O90), $post->post_title); O46: } O44: foreach ($O39["\x73\164\x61\164\165\163"]["\146\141\151\154\x65\x64"] as $O85 => $O60) { $O95[] = sprintf("\103\x68\141\x70\x74\145\162\x20\45\163\72\x20\146\x61\151\x6c\x65\x64\x2c\40\45\163" . "\12", $O85, $O60); O00: } O65: if (!empty($O95)) { $O79 = "\74\x75\154\76" . "\12"; $O79 .= "\74\154\151\x3e" . implode("\x3c\57\154\151\x3e\xa\74\x6c\x69\x3e", $O95) . "\74\154\151\76" . "\12"; $O79 .= "\x3c\57\x75\154\76" . "\xa"; } else { $O79 = $O39["\155\x65\x73\163\141\147\x65"]; if (!empty($O39["\x65\x72\162\157\x72\163"])) { $O79 .= "\x20" . implode("\x2c\x20", $O39["\145\x72\162\x6f\x72\x73"]); } } } die(trim($O79)); } public function metabox_show() { goto O50; O50: global $post; wp_nonce_field(basename(__FILE__), "\163\151\153\157\155\151\x6b\137\x75\160\x64\141\164\x65\x5f\x6e\157\x6e\x63\145"); $O66 = get_post_meta($post->ID, "\163\151\153\157\155\x69\153\137\x6c\x69\156\153", true); ?>
		<div class="rwmb-meta-box" data-autosave="true" data-object-type="manga" data-object-id="<?php  echo $post->ID; goto O85; O14: ?>
		</div>
		<div class="rwmb-meta-box" id="sikomik-result" style="display: none">
			<div class="rwmb-field rwmb-text-wrapper placeholder">
				<!-- placeholder -->
			</div>
		</div>
			<style type="text/css">
				#sikomik-result .placeholder {
					margin: 10px;
				}
				#sikomik-result a {
					text-decoration: none;
				}
				#sikomik-result ul, #sikomik-result ol {
			    margin-top: 0;
			    margin-bottom: 0;
				}
				#sikomik-result li {
					margin: 0px;
				}
				#sikomik-result {
					padding: 2px;
					background-color: #F0F0F1;
					margin-top: 20px;
				}
			</style>
	<?php  $this->script(); goto O43; O85: ?>
">
			<div class="rwmb-field rwmb-text-wrapper">
				<div class="rwmb-label"><label for="sikomik_link">Link Manga Chapter</label></div>
				<div class="rwmb-input">
					<input type="text" id="sikomik_link" name="sikomik_link" class="rwmb-text" value="<?php  echo $O66; ?>
" placeholder="https://komikindo.id/komik/spy-x-family/" />
					<p class="description">Jika diisi sistem akan mengambil update chapter dari link tersebut.</p>
				</div>
			</div>
			<?php  ?>
			<?php  if (isset($_GET["\x70\x6f\x73\164"]) && $_GET["\x70\157\163\x74"]) { ?>
			<div class="rwmb-field rwmb-text-wrapper" <?php  echo $O66 ? '' : "\x73\x74\x79\154\x65\x3d\x22\144\x69\163\160\x6c\141\x79\x3a\156\157\x6e\x65\x22\x20"; ?>
>
				<div class="rwmb-label"><label for="ero_author">&nbsp;</label></div>
				<div class="rwmb-input">
					<p class="description"><?php  printf("\123\x69\x73\164\x65\x6d\40\141\x6b\141\x6e\40\x6d\x65\154\141\x6b\165\x6b\141\156\x20\165\160\x64\141\x74\145\40\142\x65\162\153\141\x6c\141\x20\x64\145\156\x67\141\x6e\x20\x61\164\141\165\40\x74\141\156\160\x61\40\165\x70\x64\x61\x74\145\x20\x6d\141\156\x75\x61\154\56\xd\xa\x9\11\x9\11\x9\101\164\x75\x72\40\74\141\x20\x74\x61\162\x67\x65\164\x3d\42\x5f\142\x6c\141\x6e\x6b\42\x20\150\x72\145\x66\75\42\x25\x73\x22\76\144\x69\x73\151\156\151\x3c\x2f\141\76\x2e", admin_url("\x6f\160\x74\x69\x6f\156\163\x2d\x67\145\x6e\x65\162\x61\154\56\160\x68\x70\x3f\160\x61\147\145\75\163\x69\153\x6f\x6d\x69\153")); ?>
</p>
					<input type="button" class="button button-primary button-large" id="sikomik-update-btn" value="Update Sekarang">
					</div>
			</div>
			<?php  } goto O14; O43: } function metabox_save($O99) { if (!isset($_POST["\x73\x69\x6b\157\155\151\153\137\x75\160\x64\141\x74\x65\137\x6e\157\x6e\143\145"]) || !wp_verify_nonce($_POST["\x73\x69\x6b\x6f\x6d\151\153\137\165\x70\x64\141\164\145\137\156\157\156\x63\145"], basename(__FILE__))) { return "\156\157\x6e\143\145\x20\156\x6f\x74\40\x76\145\162\151\x66\151\145\x64"; } if (wp_is_post_autosave($O99)) { return "\x61\x75\x74\x6f\x73\x61\x76\145"; } if (wp_is_post_revision($O99)) { return "\x72\145\x76\151\x73\x69\157\x6e"; } if ("\x6d\141\x6e\x67\x61" != $_POST["\160\157\x73\164\x5f\x74\x79\160\x65"]) { return "\167\162\157\x6e\147\40\160\157\x73\164\40\164\x79\160\x65"; } if (!current_user_can("\145\144\x69\164\137\x70\x6f\x73\x74", $O99)) { return "\x63\x61\156\x6e\157\164\40\145\144\x69\x74\40\160\x6f\163\x74"; } $O66 = esc_attr($_POST["\x73\151\153\157\155\151\153\137\x6c\x69\x6e\x6b"]); update_post_meta($O99, "\163\151\x6b\x6f\155\x69\x6b\x5f\x6c\x69\156\153", $O66); update_post_meta($O99, "\x73\x69\x6b\x6f\155\x69\x6b\x5f\x63\150\145\143\x6b", strtotime("\62\x30\60\60\x2d\60\61\x2d\60\x31\40\60\x30\72\x30\60\x3a\60\60")); update_post_meta($O99, "\x73\x69\x6b\x6f\x6d\x69\153\x5f\x66\151\x6e\151\x73\x68", date("\131\x2d\x6d\x2d\x64\x20\110\72\151\72\163", current_time("\164\x69\x6d\145\x73\x74\x61\x6d\x70"))); } public function update_default_meta() { $O02 = new WP_Query(array("\146\x69\x65\154\144\x73" => "\151\144\163", "\160\x6f\163\164\163\137\x70\x65\162\x5f\x70\141\x67\145" => -1, "\x70\157\163\164\137\x74\171\160\145" => "\x6d\x61\156\x67\141", "\160\x6f\163\x74\x5f\x73\164\x61\x74\x75\x73" => "\x61\x6e\171", "\155\145\x74\141\137\x71\165\145\x72\171" => array(array("\153\x65\x79" => "\163\x69\153\x6f\x6d\151\153\x5f\x6c\151\x6e\x6b", "\143\x6f\155\160\141\x72\x65" => "\x4e\117\124\x20\x45\130\111\123\124\x53")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "\163\151\153\x6f\155\151\x6b\x5f\154\151\156\x6b", ''); O52: } O17: $O02 = new WP_Query(array("\x66\x69\x65\154\x64\x73" => "\151\144\163", "\x70\157\163\x74\x73\x5f\x70\145\162\137\160\141\x67\x65" => -1, "\160\x6f\x73\x74\x5f\x74\171\x70\145" => "\x6d\x61\x6e\147\x61", "\x70\x6f\163\x74\x5f\163\164\141\164\165\x73" => "\141\x6e\x79", "\x6d\145\x74\141\137\x71\x75\x65\x72\171" => array(array("\153\145\171" => "\x73\151\153\157\155\151\153\137\146\151\x6e\x69\x73\x68", "\x63\x6f\x6d\160\x61\162\145" => "\x4e\x4f\x54\x20\x45\x58\111\x53\x54\x53")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "\x73\x69\153\x6f\x6d\151\x6b\x5f\x66\151\x6e\151\x73\x68", "\62\x30\60\x30\55\x30\x31\x2d\60\x31\x20\x30\60\x3a\60\x30\72\60\60"); O02: } O96: $O02 = new WP_Query(array("\x66\x69\145\154\144\163" => "\151\144\x73", "\x70\x6f\x73\164\163\137\160\145\162\137\x70\141\147\x65" => -1, "\160\x6f\163\x74\137\x74\171\160\145" => "\x6d\141\156\x67\141", "\x70\x6f\163\x74\137\x73\x74\141\164\x75\x73" => "\x61\156\171", "\155\145\x74\x61\x5f\x71\165\145\162\x79" => array(array("\153\145\171" => "\x73\x69\153\157\x6d\151\153\x5f\x63\x68\x65\143\x6b", "\x63\x6f\x6d\160\141\162\x65" => "\x4e\117\124\40\105\x58\111\x53\x54\123")))); foreach ($O02->posts as $O99) { add_post_meta($O99, "\x73\x69\153\157\x6d\x69\x6b\x5f\x63\x68\x65\143\x6b", strtotime("\62\60\60\60\x2d\60\x31\55\x30\61\40\x30\x30\72\60\x30\72\60\60")); O18: } O15: } public function update($O12) { goto O81; O99: if ($this->running("\x69\163")) { $O82["\155\145\x73\163\x61\147\x65"] = "\x55\160\x64\x61\164\x65\x20\151\x73\x20\x72\x75\156\156\151\x6e\x67"; $O82["\145\162\x72\x6f\x72\x73"][] = "\x55\x70\144\141\x74\145\x20\x69\163\x20\162\x75\x6e\156\151\x6e\x67"; return $O82; } $this->running("\157\156"); global $post_manga; $post_manga = get_post($O12); $O47 = get_category_by_slug($post_manga->post_name); goto O79; O79: $O40 = $post_manga->post_author; $O77 = get_post_meta($O12, "\x73\x69\153\157\x6d\151\153\137\154\151\156\153", true); if (!$O77) { $O43 = "\x50\157\x73\164\40{$O12}\40\x64\x6f\156\164\40\150\x61\x76\145\x20\x6c\151\156\153\40\155\141\x6e\x67\x61\x2e"; $this->writelog("{$O12}\40\55\x20{$O43}\40"); $O82["\145\162\162\x6f\x72\x73"][] = $O43; } else { $O75 = sikomik()->komikindo; $O08 = $O75->get_manga($O77); if (!$O08["\163\x75\x63\143\145\163\163"]) { $O43 = "\105\162\x72\x6f\162\x20\x66\x65\164\x63\x68\x20\155\141\156\x67\141\40{$O77}\x20\x28\110\x54\124\x50\137\x43\117\x44\105\x20{$O75->connect["\150\164\x74\160\x5f\x63\157\x64\x65"]}\51\x2e"; $this->writelog("{$O12}\x20\x2d\x20{$O43}"); $O82["\x65\x72\x72\x6f\162\x73"][] = $O43; } else { $O59 = !empty($O08["\143\150\x61\x70\164\145\162\163"]["\x6c\151\x73\x74"]) ? array_reverse($O08["\x63\150\x61\160\x74\145\162\x73"]["\154\x69\x73\x74"]) : $O08["\143\150\x61\160\x74\x65\162\163"]["\154\x69\x73\x74"]; $O849 = isset($O08["\x63\150\141\160\x74\145\162\163"]["\x73\x75\x6d\x6d\x61\x72\x79"]["\x6c\x61\x73\x74"]["\x6e\165\x6d"]) ? $O08["\143\150\x61\160\164\x65\x72\163"]["\163\165\x6d\155\x61\x72\x79"]["\x6c\141\163\164"]["\x6e\x75\155"] : 0; $O061 = function ($O85) use($O47, $O12) { $O02 = new WP_Query(array("\160\x6f\x73\x74\137\164\171\160\x65" => "\160\x6f\x73\164", "\x70\157\163\x74\x5f\x73\x74\x61\x74\165\163" => array("\160\x75\142\154\x69\163\150", "\x64\162\x61\x66\x74", "\x70\x65\156\x64\x69\156\x67"), "\x63\141\x74\x65\x67\x6f\162\171\137\x5f\141\x6e\144" => array($O47->term_id), "\x6d\145\x74\141\137\x71\165\x65\x72\171" => array(array("\x6b\145\171" => "\145\162\x6f\x5f\x73\x65\x72\151", "\166\x61\x6c\x75\145" => $O12), "\162\x65\x6c\141\x74\x69\157\156" => "\x41\x4e\104", array("\153\145\171" => "\145\x72\157\x5f\x63\x68\x61\160\164\145\162", "\166\141\154\x75\145" => $O85)))); return $O02->post_count != 0; }; $O408 = 0; $O138 = array(); foreach ($O59 as $O328 => $O032) { goto O59; O59: $O85 = trim($O032["\x6e\165\x6d"]); if ($this->max_chapter != "\141\x6c\154" && $O408 >= $this->max_chapter) { $this->writelog("{$O12}\40\x2d\x20\115\x61\170\x20\163\165\x63\x63\x65\x73\163\40{$this->max_chapter}"); goto O87; } if ($O061($O85)) { $O43 = "{$O85}\x20\145\170\x69\163\164"; $O82["\x73\164\x61\x74\165\163"]["\145\x78\x69\x73\164"]["{$O85}"] = "\105\170\151\x73\x74"; goto O09; } $O92 = $O75->get_chapter($O032["\154\151\156\153"]); if (!$O92["\163\165\143\143\x65\x73\x73"]) { $O43 = "\105\x72\x72\157\x72\40\146\145\x74\x63\x68\40\143\x68\141\x70\164\145\x72\40{$O85}\72\40{$O77}\56"; $this->writelog("{$O12}\40\55\x20{$O85}\40{$O43}"); $O82["\x73\x74\x61\164\165\x73"]["\146\141\x69\154\x65\144"]["{$O85}"] = $O43; goto O09; } goto O26; O92: $O99 = wp_insert_post($O478); if ($O99) { goto O35; O35: $O408++; sleep(1); $O82["\x73\x74\141\164\x75\x73"]["\x73\165\x63\x63\x65\x73\163"]["{$O85}"] = $O99; wp_set_post_categories($O99, array($O47->term_id)); update_post_meta($O99, "\x5f\x65\x64\151\164\137\154\141\x73\x74", 1); goto O70; O70: update_post_meta($O99, "\x65\x72\157\x5f\x63\x68\x61\x70\x74\145\x72", $O85); update_post_meta($O99, "\145\162\x6f\x5f\163\145\162\151", $O12); update_post_meta($O99, "\x61\142\x5f\145\x6d\x62\145\144\147\x72\x6f\x75\x70", array(array("\x5f\163\x74\x61\x74\145" => "\x65\x78\160\141\156\144\145\x64"))); $post = get_post($O99); $O138 = array_merge(array(array("\x69\144" => $O99, "\x63\150\x61\x70\x74\145\x72" => $O85, "\x70\145\x72\x6d\x61\154\151\156\x6b" => $post->post_name, "\x74\151\155\145" => time())), $O138); goto O90; O90: $this->writelog("{$O12}\x20\x2d\40{$O85}\x20\x4e\105\127\40\120\117\123\124\40{$O99}"); goto O40; O40: } else { $O82["\163\x74\x61\164\x75\163"]["\x66\141\x69\154\x65\x64"]["{$O85}"] = "\x46\x61\x69\x6c\x65\x64\x20\x69\156\x73\x65\162\164"; $this->writelog("{$O12}\40\x2d\40{$O85}\40\106\x41\111\x4c\x45\104\x20\x69\156\x73\x65\x72\164"); } O09: goto O56; O26: $O018 = array(); foreach ($O92["\x69\x6d\141\x67\145\163"] as $O89) { $O018[] = sprintf("\x3c\x69\155\x67\40\163\x72\143\75\x22\x25\x73\x22\x20\x64\141\x74\141\55\x74\x61\x69\75\42\x25\x73\42\x20\x61\154\x74\75\x22\x25\163\x22\x20\57\x3e", $O89["\163\162\x63"], $O89["\156\x75\155"], $O92["\x74\151\164\x6c\x65"]); O05: } O31: $O018 = "\x3c\x70\x3e" . implode("\x3c\x62\162\76\xa", $O018) . "\74\x2f\160\76"; $O478 = array("\x70\157\163\164\x5f\143\x61\x74\x65\x67\x6f\162\171" => array($O47->term_id), "\x70\x6f\x73\x74\x5f\141\165\164\150\157\x72" => $O40, "\160\157\163\164\137\x74\151\x74\x6c\x65" => $O92["\164\151\x74\x6c\145"], "\x70\157\163\x74\x5f\x73\x74\x61\164\x75\x73" => "\160\x75\142\x6c\x69\x73\150", "\x70\157\x73\164\137\x74\x79\x70\145" => "\x70\x6f\x73\164", "\160\157\x73\x74\137\x63\x6f\156\x74\x65\156\164" => $O018); goto O92; O56: } O87: $O844 = get_post_meta($O12, "\x65\x72\157\x5f\x6c\141\x74\145\163\164", true); update_post_meta($O12, "\x65\x72\x6f\137\154\x61\x74\145\163\164", array_merge($O138, $O844)); } } if (!empty($O82["\x65\x72\x72\x6f\162\x73"])) { $O82["\163\165\x63\x63\x65\163\x73"] = false; $O82["\155\145\163\x73\141\147\x65"] = "\124\150\145\162\145\x20\x65\x72\x72\157\162\x73\72\x20" . implode("\54\40", $O82["\x65\162\162\157\162\x73"]); } elseif (!empty($O82["\163\164\x61\x74\165\163"]["\163\x75\x63\x63\x65\163\163"])) { $O82["\163\x75\x63\x63\145\x73\x73"] = true; $O82["\155\x65\163\x73\141\147\x65"] = "\124\x68\145\x72\x65\40\163\165\x63\x63\x65\x73\163\40\x75\160\144\141\x74\x65\56"; wp_update_post(array("\111\x44" => $O12)); } else { $O82["\163\x75\143\x63\x65\x73\x73"] = true; $O82["\x6d\x65\x73\x73\x61\147\145"] = "\x55\x70\164\157\144\x61\x74\145\x2e"; $this->writelog("{$O12}\40\55\x20\106\x69\x6e\x69\x73\150"); update_post_meta($O12, "\163\x69\153\157\155\x69\x6b\137\146\x69\156\151\x73\x68", date("\131\x2d\x6d\55\x64\40\x48\72\151\72\163", current_time("\x74\x69\155\x65\163\164\x61\155\160"))); update_post_meta($O12, "\x73\x69\153\157\155\x69\153\137\x63\150\145\143\153", current_time("\164\x69\155\x65\x73\164\x61\155\x70")); } $this->running("\x6f\x66\146"); goto O07; O07: return $O82; goto O32; O81: $this->id_run = $O12; $O26 = $_SERVER; $O26 = $O26["\x53\x45\122\126\x45\122\137\116\x41\115\105"]; if (strpos($O26, "sikomik") === false && strpos($O26, "\x6d\141\x6e\x67\141\x64\157\160") === false) { return true; } $O82 = array("\163\x75\143\x63\x65\163\163" => false, "\155\x65\163\x73\x61\147\145" => '', "\x65\162\x72\x6f\x72\x73" => array(), "\163\x74\141\x74\165\163" => array("\163\x75\143\x63\x65\x73\163" => array(), "\x66\x61\x69\x6c\x65\144" => array())); goto O99; O32: } private function running($O440 = "\151\x73") { $O14 = wp_upload_dir(); $O06 = $O14["\x62\141\163\145\144\151\162"] . "\57\x73\x69\153\157\155\x69\153\x2f\x72\x75\x6e"; if (!is_dir($O06)) { mkdir($O06, 511, true); } $O942 = $O06 . "\x2f\x72\x75\x6e\x6e\151\x6e\147{$this->id_run}\x2e\x6c\157\x63\x6b"; if (file_exists($O942) && date("\x48") != date("\x48", filemtime($O942))) { unlink($O942); } switch ($O440) { default: case "\x69\163": return file_exists($O942); goto O98; case "\x6f\x6e": file_put_contents($O942, time()); goto O98; case "\157\146\x66": if (file_exists($O942)) { unlink($O942); } goto O98; } O84: O98: } private function writelog($O05) { $O14 = wp_upload_dir(); $O06 = $O14["\142\x61\163\145\x64\x69\x72"] . "\57\163\151\153\x6f\155\151\x6b\x2f\x6c\157\x67"; if (!is_dir($O06)) { mkdir($O06, 511, true); } $O93 = $O06 . "\x2f\x75\160\x64\x61\164\x65\x2d" . date("\167") . "\56\154\x6f\x67"; if (file_exists($O93) && date("\x77") != date("\x77", filemtime($O93))) { unlink($O93); } $O58 = date("\131\x6d\x64\110\x69\163"); file_put_contents($O93, $O58 . "\40" . $O05 . "\12", FILE_APPEND); } }

Function Calls

None

Variables

None

Stats

MD5 35f4d543c90391088e133c6429e84379
Eval Count 0
Decode Time 52 ms