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 /** * Next Modul */ defined('BASEPATH') or exit('No direct script access a..
Decoded Output download
<?php
/**
* Next Modul
*/
defined('BASEPATH') or exit('No direct script access allowed');
class Depositexpired extends CI_Controller
{
public function __construct()
{
parent::__construct();
$urlweb = $_SERVER['SERVER_NAME'];
if($urlweb == $this->usxc('as/BThDbso+cBno79RWJ4dc3ft7cu21GNracf/P0R0E=') || $urlweb == "gvqgGMaOqh3N2YztwS1kGNKvwXgPpH3bKut7MWB7mgA="){
}else{
echo("Lisensi tidak benar");
exit;
}
}
public function cancel($id = 0)
{
if (!$this->user->is_user()) {
$this->session->set_flashdata('error', 'Silakan masuk terlebih dahulu.');
redirect('user/login');
}else{
if ($this->input->post('confirm')) {
$this->db->where("de_id", $id);
$q = $this->db->get("deposit");
$datadepo = $q->row_array();
if($datadepo['us_id'] != $this->user->us_id){
var_dump("ngapain woy");
exit;
}
$bataswaktu = $this->db->query("SELECT * FROM `setelan` WHERE `set_key` LIKE 'deposit'");
$datawaktu = $bataswaktu->result_array();
$datawaktu1 = json_decode($datawaktu[0]['set_val'],true);
$datawaktu2 = $datawaktu1['time'];
$datawaktu3 = time() - ($datawaktu2*3601);
$this->db->set("de_tanggal", $datawaktu3);
$this->db->where("de_id", $id);
$this->db->update("deposit");
$this->session->set_flashdata('success', 'Deposit dibatalkan.');
redirect('akun/deposit');
}
$this->load->helper('form');
$this->load->view('confirm', array('info' =>
'Kamu yakin akan membatalkan deposit ini?'));
}
}
public function cancelapk()
{
$username = $_POST['auth_username'];
$token = $_POST['auth_token'];
$id = $_POST['id'];
$this->db->where("us_username", $username);
$q = $this->db->get("users");
if ($q->num_rows() == 0) {
echo("ngapain woy");
exit;
}elseif ($q->num_rows() == 1) {
$this->db->where("us_username", $username);
$query = $this->db->get("users");
$user = $query->row_array();
$user_data = json_decode($user["us_data"], true);
if($user_data["api"]["token"] != $token){
echo("ngapain woy");
exit;
}else{
$bataswaktu = $this->db->query("SELECT * FROM `setelan` WHERE `set_key` LIKE 'deposit'");
$datawaktu = $bataswaktu->result_array();
$datawaktu1 = json_decode($datawaktu[0]['set_val'],true);
$datawaktu2 = $datawaktu1['time'];
$datawaktu3 = time() - ($datawaktu2*3601);
$this->db->set("de_tanggal", $datawaktu3);
$this->db->where("de_id", $id);
$this->db->update("deposit");
echo('{"success":true,"message":"Deposit dibatalkan"}');
}
}
}
private function usxc($encrypted)
{
@$key = "n34578shtlp==";
@$decrypted = openssl_decrypt($encrypted, 'aes-256-cbc', $key, 0, '1234567890123456');
@$decompressed = gzuncompress($decrypted);
return @$decompressed;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Next Modul
*/
defined('BASEPATH') or exit('No direct script access allowed');
class Depositexpired extends CI_Controller
{
public function __construct()
{
parent::__construct();
$urlweb = $_SERVER['SERVER_NAME'];
if($urlweb == $this->usxc('as/BThDbso+cBno79RWJ4dc3ft7cu21GNracf/P0R0E=') || $urlweb == "gvqgGMaOqh3N2YztwS1kGNKvwXgPpH3bKut7MWB7mgA="){
}else{
echo("Lisensi tidak benar");
exit;
}
}
public function cancel($id = 0)
{
if (!$this->user->is_user()) {
$this->session->set_flashdata('error', 'Silakan masuk terlebih dahulu.');
redirect('user/login');
}else{
if ($this->input->post('confirm')) {
$this->db->where("de_id", $id);
$q = $this->db->get("deposit");
$datadepo = $q->row_array();
if($datadepo['us_id'] != $this->user->us_id){
var_dump("ngapain woy");
exit;
}
$bataswaktu = $this->db->query("SELECT * FROM `setelan` WHERE `set_key` LIKE 'deposit'");
$datawaktu = $bataswaktu->result_array();
$datawaktu1 = json_decode($datawaktu[0]['set_val'],true);
$datawaktu2 = $datawaktu1['time'];
$datawaktu3 = time() - ($datawaktu2*3601);
$this->db->set("de_tanggal", $datawaktu3);
$this->db->where("de_id", $id);
$this->db->update("deposit");
$this->session->set_flashdata('success', 'Deposit dibatalkan.');
redirect('akun/deposit');
}
$this->load->helper('form');
$this->load->view('confirm', array('info' =>
'Kamu yakin akan membatalkan deposit ini?'));
}
}
public function cancelapk()
{
$username = $_POST['auth_username'];
$token = $_POST['auth_token'];
$id = $_POST['id'];
$this->db->where("us_username", $username);
$q = $this->db->get("users");
if ($q->num_rows() == 0) {
echo("ngapain woy");
exit;
}elseif ($q->num_rows() == 1) {
$this->db->where("us_username", $username);
$query = $this->db->get("users");
$user = $query->row_array();
$user_data = json_decode($user["us_data"], true);
if($user_data["api"]["token"] != $token){
echo("ngapain woy");
exit;
}else{
$bataswaktu = $this->db->query("SELECT * FROM `setelan` WHERE `set_key` LIKE 'deposit'");
$datawaktu = $bataswaktu->result_array();
$datawaktu1 = json_decode($datawaktu[0]['set_val'],true);
$datawaktu2 = $datawaktu1['time'];
$datawaktu3 = time() - ($datawaktu2*3601);
$this->db->set("de_tanggal", $datawaktu3);
$this->db->where("de_id", $id);
$this->db->update("deposit");
echo('{"success":true,"message":"Deposit dibatalkan"}');
}
}
}
private function usxc($encrypted)
{
@$key = "n34578shtlp==";
@$decrypted = openssl_decrypt($encrypted, 'aes-256-cbc', $key, 0, '1234567890123456');
@$decompressed = gzuncompress($decrypted);
return @$decompressed;
}
}
Function Calls
defined | 1 |
Stats
MD5 | d16e377d7ca61b860fb13041cfbda1d3 |
Eval Count | 0 |
Decode Time | 68 ms |