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

Signing you up...

Thank you for signing up!

PHP Decode

goto rqELm; rqELm: session_start(); goto U1BzL; vFlhf: require_once "inc/fu..

Decoded Output download

<?  goto rqELm;  
 rqELm: session_start();  
  
 goto U1BzL;  
  
 vFlhf: require_once "inc/fungsi.php";  
  
 goto tOSLh;  
  
 U1BzL: include "inc/config.php";  
  
 goto vFlhf;  
  
 tOSLh:  
	if (isset($_SESSION["logins"])) {  
		include "header.php";  
		$ucingtea = "no";  
		function fetch_curl($url) {  
			$url = $url . "&curdate=" . date("Y-m-d");  
			$ch = curl_init();  
			$timeout = 5;  
			curl_setopt($ch, CURLOPT_URL, $url);  
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
			curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);  
			$result = curl_exec($ch);  
			$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);  
			if ($http_code == "200" || $http_code == "302") {  
				$result = json_decode($result);  
			} else { $result = false; }  
			curl_close($ch); return $result;  
		}  
		 
		function is_connecteds($url) {  
			$url = $url; $ch = curl_init($url);  
			curl_setopt($ch, CURLOPT_HEADER, true);  
			curl_setopt($ch, CURLOPT_NOBODY, true);  
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
			curl_setopt($ch, CURLOPT_TIMEOUT, 5);  
			$output = curl_exec($ch);  
			$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);  
			curl_close($ch); return $httpcode;  
		}  
		 
		function service_url($param) {  
			global $db; $data = $db->fetch_single_row("sys_system", "id", 2);  
			$replace_encode = substr_replace($data->data, '', 3, 3);  
			$decode = base64_decode($replace_encode);  
			$json = json_decode($decode); $result = $json->{$param}; return $result;  
		}  
		 
		function stringInsert($str, $insertstr, $pos) {  
			$str = substr($str, 0, $pos) . $insertstr . substr($str, $pos); return $str;  
		}  
		 
		function insert_data($data_array) {  
			global $db;  
			$salt = "XZO";  
			$dt = json_encode($data_array);  
			$encode_json = base64_encode($dt);  
			$json_after_salt = stringInsert($encode_json, $salt, 3);  
			$data = array("data" => $json_after_salt);  
			$db->update("sys_system", $data, "id", 1);  
		}  
		 
		function refresh() {  
			global $db;  
			$user = $db->fetch_single_row("config_user", "id", 1);  
			$data = $db->fetch_single_row("sys_system", "id", 1);  
			$replace_encode = substr_replace($data->data, '', 3, 3);  
			$decode = base64_decode($replace_encode);  
			$json_sys = json_decode($decode);  
			$check_internet = is_connecteds(service_url("is_connect"));  
			if ($check_internet == false) {  
				echo "Pastikan Anda Konek Untuk Inisialisasi Importer";  
				die;  
			}  
			$data_msg_server = fetch_curl(service_url("exp_check_sp") . "?kode_pt=" . $user->id_sp);  
			if ($data_msg_server) {  
				if ($data_msg_server->expired == "N") {  
					$data_array_update = array("exp" => "N", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif);  
					insert_data($data_array_update); $ucingtea = "no";  
				} else {  
					$ucingtea = "yes";  
					$data_array_update = array("exp" => "Y", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif);  
					insert_data($data_array_update);  
				}  
			} else {  
				$ucingtea = "yes";  
			}  
			return $ucingtea;  
		}  
		 
		if (strncasecmp(PHP_OS, "WIN", 3) != 0) {  
			$file = "modul/nilai_perkuliahan/get_jumlah.php"; $file2 = "../upload/sample/akm_new.xlsx";  
			if (decoct(fileperms($file) & 511) != 777) {  
				echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br> 
					2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br> 
					4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>";  
					die;  
			} elseif (decoct(fileperms($file2) & 511) != 777) {  
				echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br> 
					2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br> 
					4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>";  
					die;  
			}  
		}  
		$data = $db->fetch_single_row("sys_system", "id", 1);  
		$replace_encode = substr_replace($data->data, '', 3, 3);  
		$decode = base64_decode($replace_encode);  
		$json_sys = json_decode($decode);  
		$user = $db->fetch_single_row("config_user", "id", 1);  
		$current_date = date("Y-m-d");  
		$jur_check = $db->fetch_custom("select id from jurusan");  
		 
		if ($user->id_sp != '' && $current_date != $json_sys->current_date) {  
			$ucingtea = refresh();  
		}  
		 
		if (isset($_POST["refresh"])) {  
			$ucingtea = refresh();  
		}  
		 
		if ($json_sys->exp == "Y") {  
			$ucingtea = "yes";  
		}  
		 
		if ($ucingtea == "yes") {  
			include "system/page/sys.php";  
		} elseif ($user->id_sp == '') {  
			include "modul/setting_awal/config_feeder.php";  
		} elseif ($jur_check->rowCount() < 1) {  
			include "modul/setting_awal/download_jurusan.php";  
		} else {  
			switch ($path_url) {  
				case '': include "modul/home/home.php"; break;  
				case "modul": include "system/modul/modul.php"; break;  
				case "update": include "system/update/update.php"; break;  
				case "page": include "system/page/page.php"; break;  
				case "menu-management": include "modul/menu_management/menu_management.php"; break;  
				case "group-user": include "modul/group_user/group_user.php"; break;  
				case "user-management": include "modul/user_management/user_management.php"; break;  
				case "change-password": include "modul/change_password/change_pass.php"; break;  
				case "profil": include "modul/profil/profil.php"; break;  
			}  
			 
			foreach ($db->fetch_all("sys_menu") as $isi) {  
				if (in_array($isi->url, $role_user)) {  
					if ($path_url != '' && $path_url == $isi->url) {  
						include "modul/" . $isi->nav_act . "/" . $isi->nav_act . ".php";  
					}  
				}  
			}  
		}  
		 
		include "footer.php";  
	} else {  
		redirect(base_admin() . "login.php");  
	}  
	goto cfn_W;  
	cfn_W:  ?>

Did this file decode correctly?

Original Code

goto rqELm; 
 rqELm: session_start(); 
 
 goto U1BzL; 
 
 vFlhf: require_once "inc/fungsi.php"; 
 
 goto tOSLh; 
 
 U1BzL: include "inc/config.php"; 
 
 goto vFlhf; 
 
 tOSLh: 
	if (isset($_SESSION["logins"])) { 
		include "header.php"; 
		$ucingtea = "no"; 
		function fetch_curl($url) { 
			$url = $url . "&curdate=" . date("Y-m-d"); 
			$ch = curl_init(); 
			$timeout = 5; 
			curl_setopt($ch, CURLOPT_URL, $url); 
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
			curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); 
			$result = curl_exec($ch); 
			$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); 
			if ($http_code == "200" || $http_code == "302") { 
				$result = json_decode($result); 
			} else { $result = false; } 
			curl_close($ch); return $result; 
		} 
		
		function is_connecteds($url) { 
			$url = $url; $ch = curl_init($url); 
			curl_setopt($ch, CURLOPT_HEADER, true); 
			curl_setopt($ch, CURLOPT_NOBODY, true); 
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
			curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
			$output = curl_exec($ch); 
			$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); 
			curl_close($ch); return $httpcode; 
		} 
		
		function service_url($param) { 
			global $db; $data = $db->fetch_single_row("sys_system", "id", 2); 
			$replace_encode = substr_replace($data->data, '', 3, 3); 
			$decode = base64_decode($replace_encode); 
			$json = json_decode($decode); $result = $json->{$param}; return $result; 
		} 
		
		function stringInsert($str, $insertstr, $pos) { 
			$str = substr($str, 0, $pos) . $insertstr . substr($str, $pos); return $str; 
		} 
		
		function insert_data($data_array) { 
			global $db; 
			$salt = "XZO"; 
			$dt = json_encode($data_array); 
			$encode_json = base64_encode($dt); 
			$json_after_salt = stringInsert($encode_json, $salt, 3); 
			$data = array("data" => $json_after_salt); 
			$db->update("sys_system", $data, "id", 1); 
		} 
		
		function refresh() { 
			global $db; 
			$user = $db->fetch_single_row("config_user", "id", 1); 
			$data = $db->fetch_single_row("sys_system", "id", 1); 
			$replace_encode = substr_replace($data->data, '', 3, 3); 
			$decode = base64_decode($replace_encode); 
			$json_sys = json_decode($decode); 
			$check_internet = is_connecteds(service_url("is_connect")); 
			if ($check_internet == false) { 
				echo "Pastikan Anda Konek Untuk Inisialisasi Importer"; 
				die; 
			} 
			$data_msg_server = fetch_curl(service_url("exp_check_sp") . "?kode_pt=" . $user->id_sp); 
			if ($data_msg_server) { 
				if ($data_msg_server->expired == "N") { 
					$data_array_update = array("exp" => "N", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif); 
					insert_data($data_array_update); $ucingtea = "no"; 
				} else { 
					$ucingtea = "yes"; 
					$data_array_update = array("exp" => "Y", "current_date" => $data_msg_server->current_date, "aktif" => $json_sys->aktif); 
					insert_data($data_array_update); 
				} 
			} else { 
				$ucingtea = "yes"; 
			} 
			return $ucingtea; 
		} 
		
		if (strncasecmp(PHP_OS, "WIN", 3) != 0) { 
			$file = "modul/nilai_perkuliahan/get_jumlah.php"; $file2 = "../upload/sample/akm_new.xlsx"; 
			if (decoct(fileperms($file) & 511) != 777) { 
				echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br>
					2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br>
					4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>"; 
					die; 
			} elseif (decoct(fileperms($file2) & 511) != 777) { 
				echo "<h2>Karena anda menggunakan Linux, Silakan lakukan chmod directory modul dan upload dengan cara : <br>1. Masuk ke server menggunakn SSH<br>
					2. Masuk Ke directory dimana Importer Terinstall<br>3. Ketik : <span style='color:#f00;font-weigh:bold'>chmod -R 777 upload/</span><br>
					4. Masuk ke directory admina/ lalu ketik <span style='color:#f00;font-weigh:bold'>chmod -R 777 modul/</span>"; 
					die; 
			} 
		} 
		$data = $db->fetch_single_row("sys_system", "id", 1); 
		$replace_encode = substr_replace($data->data, '', 3, 3); 
		$decode = base64_decode($replace_encode); 
		$json_sys = json_decode($decode); 
		$user = $db->fetch_single_row("config_user", "id", 1); 
		$current_date = date("Y-m-d"); 
		$jur_check = $db->fetch_custom("select id from jurusan"); 
		
		if ($user->id_sp != '' && $current_date != $json_sys->current_date) { 
			$ucingtea = refresh(); 
		} 
		
		if (isset($_POST["refresh"])) { 
			$ucingtea = refresh(); 
		} 
		
		if ($json_sys->exp == "Y") { 
			$ucingtea = "yes"; 
		} 
		
		if ($ucingtea == "yes") { 
			include "system/page/sys.php"; 
		} elseif ($user->id_sp == '') { 
			include "modul/setting_awal/config_feeder.php"; 
		} elseif ($jur_check->rowCount() < 1) { 
			include "modul/setting_awal/download_jurusan.php"; 
		} else { 
			switch ($path_url) { 
				case '': include "modul/home/home.php"; break; 
				case "modul": include "system/modul/modul.php"; break; 
				case "update": include "system/update/update.php"; break; 
				case "page": include "system/page/page.php"; break; 
				case "menu-management": include "modul/menu_management/menu_management.php"; break; 
				case "group-user": include "modul/group_user/group_user.php"; break; 
				case "user-management": include "modul/user_management/user_management.php"; break; 
				case "change-password": include "modul/change_password/change_pass.php"; break; 
				case "profil": include "modul/profil/profil.php"; break; 
			} 
			
			foreach ($db->fetch_all("sys_menu") as $isi) { 
				if (in_array($isi->url, $role_user)) { 
					if ($path_url != '' && $path_url == $isi->url) { 
						include "modul/" . $isi->nav_act . "/" . $isi->nav_act . ".php"; 
					} 
				} 
			} 
		} 
		
		include "footer.php"; 
	} else { 
		redirect(base_admin() . "login.php"); 
	} 
	goto cfn_W; 
	cfn_W: 

Function Calls

None

Variables

None

Stats

MD5 58b626c0387d6876d57144512ecc02ae
Eval Count 0
Decode Time 53 ms