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 /* function data Dock Application create by: wawan pw ([email protected]) */ in..
Decoded Output download
<?php
/*
function data Dock Application
create by: wawan pw ([email protected])
*/
include('func.php');
$realArray = array('\'','\"','\','/',',','.');
$replaceArray = array(''','"','\','/',',','.');
$utfArray = array('%27','%22','%5C','%2F','%2C','%2E');
$hariIni_ymd = gmdate('Y-m-d', time()+60*60*7);
/*------------- GET PAGE -------------*/
if(isset($_GET['p'])){
/*------------- TITLE -------------*/
if($_GET['p'] == 'ship-particular'){
$titleHeader = 'Ship Particular';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}elseif($_GET['p'] == 'crews-data'){
$titleHeader = 'Crews Data';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}elseif($_GET['p'] == 'crews-ship'){
$titleHeader = 'Crews Of Ship';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}
/*------------- SHIP PARTICULAR -------------*/
if($_GET['p'] == 'ship-particular'){
//TITLE
$titleHeader = 'Ship Particular';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
if(isset($_GET['view'])){
$whereQuery = 'WHERE imo = \''.$_GET['imo'].'\'';
}else{
$dataHal = 10;
if(isset($_GET['num'])){
$noPage = $_GET['num'];
}else{
$noPage = 1;
}
$offset = ($noPage - 1) * $dataHal;
$getPage = '?p=ship-particular';
$whereQuery = 'ORDER BY CAST(`year` as SIGNED INTEGER) DESC LIMIT '.$offset.', '.$dataHal.'';
}
$pQuery = mysql_query("SELECT * FROM tbship ".$whereQuery."");
if(isset($_GET['view'])){
$viewQuery = mysql_fetch_array($pQuery);
$vassel = $viewQuery['vassel'];
$owner = $viewQuery['owner'];
$year = $viewQuery['year'];
$type = $viewQuery['type'];
$grt = $viewQuery['grt'];
$loa = $viewQuery['loa'];
$lbp = $viewQuery['lbp'];
$dept = $viewQuery['dept'];
$me = $viewQuery['me'];
$ae = $viewQuery['ae'];
$imo = $viewQuery['imo'];
$callsign = $viewQuery['callsign'];
$class = $viewQuery['class'];
$flag = $viewQuery['flag'];
$port = $viewQuery['port'];
}else{
$allQuery = mysql_query("SELECT * FROM tbship ".$whereQuery."");
$allQuery = mysql_num_rows($allQuery);
$numQuery = mysql_num_rows($pQuery);
$allData = ceil($allQuery/$dataHal);
while($viewQuery = mysql_fetch_array($pQuery)){
$vassel[] = $viewQuery['vassel'];
$owner[] = $viewQuery['owner'];
$year[] = $viewQuery['year'];
$type[] = $viewQuery['type'];
$grt[] = $viewQuery['grt'];
$loa[] = $viewQuery['loa'];
$lbp[] = $viewQuery['lbp'];
$dept[] = $viewQuery['dept'];
$me[] = $viewQuery['me'];
$ae[] = $viewQuery['ae'];
$imo[] = $viewQuery['imo'];
$callsign[] = $viewQuery['callsign'];
$class[] = $viewQuery['class'];
$flag[] = $viewQuery['flag'];
$port[] = $viewQuery['port'];
}
}
}
}else{
$titleHeader = 'Dashboard';
$titleLabel = 'Dashboard';
}
/*------------- POST -------------*/
if(isset($_POST['inputShipParticular'])){
$checkingQuery = mysql_query("SELECT * FROM tbship WHERE imo = '".str_replace(' ','',strtoupper($_POST['imo']))."'");
$numCheck = mysql_num_rows($checkingQuery);
if($numCheck != 0){
$inputQuery = mysql_query("INSERT INTO tbship VALUES('".str_replace($realArray,$replaceArray,$_POST['vassel'])."','".str_replace($realArray,$replaceArray,$_POST['owner'])."','".$_POST['build']."','".$_POST['type']."','".$_POST['grtnrt']."','".$_POST['loa']."','".$_POST['lbp']."','".$_POST['draft']."','".$_POST['me']."','".$_POST['ae']."','".str_replace(' ','',strtoupper($_POST['imo']))."','".$_POST['callSign']."','".$_POST['class']."','".$_POST['flag']."','".$_POST['port']."','Y')");
if($inputQuery){
Header('Location: ?p=ship-particular&view=detail&alert=success&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}else{
Header('Location: ?p=ship-particular&alert=failed&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}
}else{
Header('Location: ?p=ship-particular&alert=same&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}
}
if(isset($_POST['inputCertificate'])){
$checkingQuery = mysql_query("SELECT * FROM tbcertificate WHERE no_certificate = '".str_replace($realArray,$replaceArray,strtoupper($_POST['noCert']))."'");
$numCheck = mysql_num_rows($checkingQuery);
if($numCheck != 0){
$inputQuery = mysql_query("INSERT INTO tbcertificate VALUES('".str_replace($realArray,$replaceArray,$_POST['vassel'])."','".str_replace($realArray,$replaceArray,$_POST['owner'])."','".$_POST['build']."','".$_POST['type']."','".$_POST['grtnrt']."','".$_POST['loa']."','".$_POST['lbp']."','".$_POST['draft']."','".$_POST['me']."','".$_POST['ae']."','".str_replace(' ','',strtoupper($_POST['imo']))."','".$_POST['callSign']."','".$_POST['class']."','".$_POST['flag']."','".$_POST['port']."','Y')");
if($inputQuery){
Header('Location: ?p=ship-particular&view=detail&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=success';
}else{
Header('Location: ?p=ship-particular&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=failed';
}
}else{
Header('Location: ?p=ship-particular&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=same';
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
function data Dock Application
create by: wawan pw ([email protected])
*/
include('func.php');
$realArray = array('\'','\"','\\','/',',','.');
$replaceArray = array(''','"','\','/',',','.');
$utfArray = array('%27','%22','%5C','%2F','%2C','%2E');
$hariIni_ymd = gmdate('Y-m-d', time()+60*60*7);
/*------------- GET PAGE -------------*/
if(isset($_GET['p'])){
/*------------- TITLE -------------*/
if($_GET['p'] == 'ship-particular'){
$titleHeader = 'Ship Particular';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}elseif($_GET['p'] == 'crews-data'){
$titleHeader = 'Crews Data';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}elseif($_GET['p'] == 'crews-ship'){
$titleHeader = 'Crews Of Ship';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
}
/*------------- SHIP PARTICULAR -------------*/
if($_GET['p'] == 'ship-particular'){
//TITLE
$titleHeader = 'Ship Particular';
$titleLabel = 'Ships Data';
$ShipParticular = 'active';
if(isset($_GET['view'])){
$whereQuery = 'WHERE imo = \''.$_GET['imo'].'\'';
}else{
$dataHal = 10;
if(isset($_GET['num'])){
$noPage = $_GET['num'];
}else{
$noPage = 1;
}
$offset = ($noPage - 1) * $dataHal;
$getPage = '?p=ship-particular';
$whereQuery = 'ORDER BY CAST(`year` as SIGNED INTEGER) DESC LIMIT '.$offset.', '.$dataHal.'';
}
$pQuery = mysql_query("SELECT * FROM tbship ".$whereQuery."");
if(isset($_GET['view'])){
$viewQuery = mysql_fetch_array($pQuery);
$vassel = $viewQuery['vassel'];
$owner = $viewQuery['owner'];
$year = $viewQuery['year'];
$type = $viewQuery['type'];
$grt = $viewQuery['grt'];
$loa = $viewQuery['loa'];
$lbp = $viewQuery['lbp'];
$dept = $viewQuery['dept'];
$me = $viewQuery['me'];
$ae = $viewQuery['ae'];
$imo = $viewQuery['imo'];
$callsign = $viewQuery['callsign'];
$class = $viewQuery['class'];
$flag = $viewQuery['flag'];
$port = $viewQuery['port'];
}else{
$allQuery = mysql_query("SELECT * FROM tbship ".$whereQuery."");
$allQuery = mysql_num_rows($allQuery);
$numQuery = mysql_num_rows($pQuery);
$allData = ceil($allQuery/$dataHal);
while($viewQuery = mysql_fetch_array($pQuery)){
$vassel[] = $viewQuery['vassel'];
$owner[] = $viewQuery['owner'];
$year[] = $viewQuery['year'];
$type[] = $viewQuery['type'];
$grt[] = $viewQuery['grt'];
$loa[] = $viewQuery['loa'];
$lbp[] = $viewQuery['lbp'];
$dept[] = $viewQuery['dept'];
$me[] = $viewQuery['me'];
$ae[] = $viewQuery['ae'];
$imo[] = $viewQuery['imo'];
$callsign[] = $viewQuery['callsign'];
$class[] = $viewQuery['class'];
$flag[] = $viewQuery['flag'];
$port[] = $viewQuery['port'];
}
}
}
}else{
$titleHeader = 'Dashboard';
$titleLabel = 'Dashboard';
}
/*------------- POST -------------*/
if(isset($_POST['inputShipParticular'])){
$checkingQuery = mysql_query("SELECT * FROM tbship WHERE imo = '".str_replace(' ','',strtoupper($_POST['imo']))."'");
$numCheck = mysql_num_rows($checkingQuery);
if($numCheck != 0){
$inputQuery = mysql_query("INSERT INTO tbship VALUES('".str_replace($realArray,$replaceArray,$_POST['vassel'])."','".str_replace($realArray,$replaceArray,$_POST['owner'])."','".$_POST['build']."','".$_POST['type']."','".$_POST['grtnrt']."','".$_POST['loa']."','".$_POST['lbp']."','".$_POST['draft']."','".$_POST['me']."','".$_POST['ae']."','".str_replace(' ','',strtoupper($_POST['imo']))."','".$_POST['callSign']."','".$_POST['class']."','".$_POST['flag']."','".$_POST['port']."','Y')");
if($inputQuery){
Header('Location: ?p=ship-particular&view=detail&alert=success&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}else{
Header('Location: ?p=ship-particular&alert=failed&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}
}else{
Header('Location: ?p=ship-particular&alert=same&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'';
}
}
if(isset($_POST['inputCertificate'])){
$checkingQuery = mysql_query("SELECT * FROM tbcertificate WHERE no_certificate = '".str_replace($realArray,$replaceArray,strtoupper($_POST['noCert']))."'");
$numCheck = mysql_num_rows($checkingQuery);
if($numCheck != 0){
$inputQuery = mysql_query("INSERT INTO tbcertificate VALUES('".str_replace($realArray,$replaceArray,$_POST['vassel'])."','".str_replace($realArray,$replaceArray,$_POST['owner'])."','".$_POST['build']."','".$_POST['type']."','".$_POST['grtnrt']."','".$_POST['loa']."','".$_POST['lbp']."','".$_POST['draft']."','".$_POST['me']."','".$_POST['ae']."','".str_replace(' ','',strtoupper($_POST['imo']))."','".$_POST['callSign']."','".$_POST['class']."','".$_POST['flag']."','".$_POST['port']."','Y')");
if($inputQuery){
Header('Location: ?p=ship-particular&view=detail&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=success';
}else{
Header('Location: ?p=ship-particular&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=failed';
}
}else{
Header('Location: ?p=ship-particular&imo='.str_replace(' ','',strtoupper($_POST['imo']))).'&alert=same';
}
}
?>
Function Calls
| None |
Stats
| MD5 | ba0585790e0b8a33b705f995aed1a8f1 |
| Eval Count | 0 |
| Decode Time | 136 ms |