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 if (!defined('BASEPATH')) { exit('No direct script access allowed'); } ..
Decoded Output download
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Advcash extends MY_Controller {
public function __construct() {
parent::__construct();
$this->load->model('client_model');
$this->load->model('settings_model');
$this->load->model('login_model');
}
public function index(){
if(isset($_REQUEST['ac_transfer'])){
$V3rwospkq12m = $_REQUEST['ac_transfer'];
$Vdvdwixvkrkc = $_REQUEST['user_id'];
$Vqqmwd5b2wy4 = $_REQUEST['plan_id'];
$V3l1d423ecud= $_REQUEST['compound_rate'];
$Vkl4x2p2bwpr = floatval($_REQUEST['ac_amount']);
$V5sncpeqy3mp = 'USD';
if($_REQUEST['ac_transaction_status']=='COMPLETED'){
$Vce1cajv3czy = 100;
}
else{
$Vce1cajv3czy = 1;
}
$Vce1cajv3czy_text = "Payment By Advcash";
$V2rk1u54zufc = $this->db->where(array('plan_id' => $Vqqmwd5b2wy4))->get('tbl_plans')->row_array();
$Vssmft4vv1rg=date('Y-m-d');
$Vnz1q4kzhd0b = $V2rk1u54zufc['period'];
if($V2rk1u54zufc['iperiod_type'] == 2)
$Vnz1q4kzhd0b =$Vnz1q4kzhd0b;
else if($V2rk1u54zufc['iperiod_type'] == 3)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 7;
else if($V2rk1u54zufc['iperiod_type'] == 4)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 30;
else if($V2rk1u54zufc['iperiod_type'] == 5)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 365;
if($V2rk1u54zufc['iperiod_type'] == 1){
$V3zxswak2pzq = date('Y-m-d H:i:s ',strtotime($Vssmft4vv1rg. ' + '.$Vnz1q4kzhd0b.' hours'));
}
else{
$V3zxswak2pzq = $this->calculateMature($Vssmft4vv1rg,$Vnz1q4kzhd0b);
}
$Vg2gbowmzayy=$this->db->where(array('transaction_id' => $V3rwospkq12m, 'payment_thro'=> 'advcash'))->get('history')->row_array();
if ( empty($Vg2gbowmzayy) ){
$V0szjq0rccj4 = $this->db->query("INSERT INTO `history` (`id`, `user_id`, `amount`, `type`, `description`, `date`, `payment_thro`, `no_withdraw`, `reference_number`, `transaction_id`, `status`) VALUES ('0','".$Vdvdwixvkrkc."','".$Vkl4x2p2bwpr."','deposit','".$Vce1cajv3czy_text."','".date('Y-m-d H:i:s')."','advcash','0','0','".$V3rwospkq12m."','".$Vce1cajv3czy."')");
$Vmk1vyqsg1rb = $this->db->query("INSERT INTO `deposit` (`deposit_id`, `member_id`, `plan_id`, `amount`, `compound_amount`, `invest_date`, `maturity_date`, `status`, `intrest_alloted`, `payment_thro`, `intrest_earned`, `intrest_earned_date`, `compound_rate`, `transaction_id`, `cron_date`) VALUES ('0','".$Vdvdwixvkrkc."','".$Vqqmwd5b2wy4."','".$Vkl4x2p2bwpr."','".$Vkl4x2p2bwpr."','".date('Y-m-d H:i:s')."','".$V3zxswak2pzq."','active','0','advcash','0','0','".$V3l1d423ecud."','".$V3rwospkq12m."','".date('Y-m-d H:i:s')."')");
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_users.username, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vdvdwixvkrkc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$V1usgdkhzmts = $V2w2ukp5cwei->row_array();
$Vlk2ld4shabc=$V1usgdkhzmts['intro_id'];
if($Vlk2ld4shabc!=''){
$this->get_levelcommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,1,$Vlk2ld4shabc,$Vqqmwd5b2wy4,$Vdvdwixvkrkc);
// $this->get_carriercommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,1,$Vlk2ld4shabc,$Vqqmwd5b2wy4,$Vdvdwixvkrkc);
}
}
}
$Vypoeqdd5s4r = 'success';
$Vxxjbaywxpak = lang('deposit_success');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
}
else
{
$Vypoeqdd5s4r = 'error';
$Vxxjbaywxpak = lang('deposit_error');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
}
public function calculateMature($Vc14sl1ryyzv,$Vnz1q4kzhd0b)
{
$Vxzr3eklhmse = strtotime("+".$Vnz1q4kzhd0b." days", strtotime($Vc14sl1ryyzv));
return date("Y-m-d", $Vxzr3eklhmse);
}
public function get_levelcommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,$Voqesu20qctb,$V0gs0fwahevk,$Vue1olb21tpx,$Vuxkmtwqnqgv){
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id, tbl_users.username')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vlk2ld4shabc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$Vi0zu3gec0ln = $V2w2ukp5cwei->row_array();
$Vqabg42qefes=$Vi0zu3gec0ln['username'];
$Vltedl2e4ic1=$Vi0zu3gec0ln['intro_id'];
$Voqesu20qctb_info=commission_data($Voqesu20qctb);
$Voqesu20qctb_commission=0;
$Vhjtmvkh4px1=user_investment($Vlk2ld4shabc);
$Vwd0sxsujadg=crop_investment($Vlk2ld4shabc);
if($Vhjtmvkh4px1>=$Voqesu20qctb_info['user_investment'] && $Vwd0sxsujadg>=$Voqesu20qctb_info['crop_investment']){
$Voqesu20qctb_commission=$Voqesu20qctb_info['bonus'];
}
echo $Voqesu20qctb_commission;
if($Voqesu20qctb_commission>0){
$Vocgh0tnsvbr=number_format(($Vkl4x2p2bwpr*$Voqesu20qctb_commission)/100, 2, '.', '');
$Vzz2xrjrp4xz=$this->db->where(array('user_id' => $Vuxkmtwqnqgv))->get('tbl_users')->row_array();
$V52kk44fthiw="Referral Commission Earned From ".$Vzz2xrjrp4xz['username'];
$Vdiy5tu5u0wv=date('Y-m-d h:i:s');
$Vwqezw10n5kr = "REF".generateCode(7);
$Vnck5eb2ir5z="insert into history (user_id,amount,type,description,transaction_id) values ('$Vlk2ld4shabc','$Vocgh0tnsvbr','commissions','$V52kk44fthiw','$Vwqezw10n5kr')";
$Vtbjkryrgj2c=$this->db->query($Vnck5eb2ir5z);
}
$Voqesu20qctb+=1;
$Vocgh0tnsvbrission_data=commission_data();
if($Voqesu20qctb<=count($Vocgh0tnsvbrission_data)){
$this->get_levelcommission($Vltedl2e4ic1,$Vkl4x2p2bwpr,$Voqesu20qctb,$Vlk2ld4shabc,$Vue1olb21tpx,$Vuxkmtwqnqgv);
}
}
}
public function get_carriercommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,$Voqesu20qctb,$V0gs0fwahevk,$Vue1olb21tpx,$Vuxkmtwqnqgv){
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id, tbl_users.username')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vlk2ld4shabc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$Vi0zu3gec0ln = $V2w2ukp5cwei->row_array();
$Vltedl2e4ic1=$Vi0zu3gec0ln['intro_id'];
$Voqesu20qctb_info=carrier_commission_data($Voqesu20qctb);
$Voqesu20qctb_commission=0;
$Voqesu20qctb_commission=$Voqesu20qctb_info['bonus'];
if($Voqesu20qctb_commission>0){
$Vocgh0tnsvbr=number_format(($Vkl4x2p2bwpr*$Voqesu20qctb_commission)/100, 2, '.', '');
$Vzz2xrjrp4xz=$this->db->where(array('user_id' => $Vuxkmtwqnqgv))->get('tbl_users')->row_array();
$V52kk44fthiw="Carrier Commission Earned From ".$Vzz2xrjrp4xz['username'];
$Vdiy5tu5u0wv=date('Y-m-d h:i:s');
$Vwqezw10n5kr = "CREF".generateCode(6);
$Vnck5eb2ir5z="insert into history (user_id,amount,type,description,transaction_id) values ('$Vlk2ld4shabc','$Vocgh0tnsvbr','commissions','$V52kk44fthiw','$Vwqezw10n5kr')";
$Vtbjkryrgj2c=$this->db->query($Vnck5eb2ir5z);
}
$Voqesu20qctb+=1;
$Vocgh0tnsvbrission_data=carrier_commission_data();
if($Voqesu20qctb<=count($Vocgh0tnsvbrission_data)){
$this->get_carriercommission($Vltedl2e4ic1,$Vkl4x2p2bwpr,$Voqesu20qctb,$Vlk2ld4shabc,$Vue1olb21tpx,$Vuxkmtwqnqgv);
}
}
}
public function success(){
$Vypoeqdd5s4r = 'success';
$Vxxjbaywxpak = lang('deposit_success');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
public function error(){
$Vypoeqdd5s4r = 'error';
$Vxxjbaywxpak = lang('deposit_error');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
} ?>
Did this file decode correctly?
Original Code
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Advcash extends MY_Controller {
public function __construct() {
parent::__construct();
$this->load->model('client_model');
$this->load->model('settings_model');
$this->load->model('login_model');
}
public function index(){
if(isset($_REQUEST['ac_transfer'])){
$V3rwospkq12m = $_REQUEST['ac_transfer'];
$Vdvdwixvkrkc = $_REQUEST['user_id'];
$Vqqmwd5b2wy4 = $_REQUEST['plan_id'];
$V3l1d423ecud= $_REQUEST['compound_rate'];
$Vkl4x2p2bwpr = floatval($_REQUEST['ac_amount']);
$V5sncpeqy3mp = 'USD';
if($_REQUEST['ac_transaction_status']=='COMPLETED'){
$Vce1cajv3czy = 100;
}
else{
$Vce1cajv3czy = 1;
}
$Vce1cajv3czy_text = "Payment By Advcash";
$V2rk1u54zufc = $this->db->where(array('plan_id' => $Vqqmwd5b2wy4))->get('tbl_plans')->row_array();
$Vssmft4vv1rg=date('Y-m-d');
$Vnz1q4kzhd0b = $V2rk1u54zufc['period'];
if($V2rk1u54zufc['iperiod_type'] == 2)
$Vnz1q4kzhd0b =$Vnz1q4kzhd0b;
else if($V2rk1u54zufc['iperiod_type'] == 3)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 7;
else if($V2rk1u54zufc['iperiod_type'] == 4)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 30;
else if($V2rk1u54zufc['iperiod_type'] == 5)
$Vnz1q4kzhd0b = $Vnz1q4kzhd0b * 365;
if($V2rk1u54zufc['iperiod_type'] == 1){
$V3zxswak2pzq = date('Y-m-d H:i:s ',strtotime($Vssmft4vv1rg. ' + '.$Vnz1q4kzhd0b.' hours'));
}
else{
$V3zxswak2pzq = $this->calculateMature($Vssmft4vv1rg,$Vnz1q4kzhd0b);
}
$Vg2gbowmzayy=$this->db->where(array('transaction_id' => $V3rwospkq12m, 'payment_thro'=> 'advcash'))->get('history')->row_array();
if ( empty($Vg2gbowmzayy) ){
$V0szjq0rccj4 = $this->db->query("INSERT INTO `history` (`id`, `user_id`, `amount`, `type`, `description`, `date`, `payment_thro`, `no_withdraw`, `reference_number`, `transaction_id`, `status`) VALUES ('0','".$Vdvdwixvkrkc."','".$Vkl4x2p2bwpr."','deposit','".$Vce1cajv3czy_text."','".date('Y-m-d H:i:s')."','advcash','0','0','".$V3rwospkq12m."','".$Vce1cajv3czy."')");
$Vmk1vyqsg1rb = $this->db->query("INSERT INTO `deposit` (`deposit_id`, `member_id`, `plan_id`, `amount`, `compound_amount`, `invest_date`, `maturity_date`, `status`, `intrest_alloted`, `payment_thro`, `intrest_earned`, `intrest_earned_date`, `compound_rate`, `transaction_id`, `cron_date`) VALUES ('0','".$Vdvdwixvkrkc."','".$Vqqmwd5b2wy4."','".$Vkl4x2p2bwpr."','".$Vkl4x2p2bwpr."','".date('Y-m-d H:i:s')."','".$V3zxswak2pzq."','active','0','advcash','0','0','".$V3l1d423ecud."','".$V3rwospkq12m."','".date('Y-m-d H:i:s')."')");
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_users.username, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vdvdwixvkrkc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$V1usgdkhzmts = $V2w2ukp5cwei->row_array();
$Vlk2ld4shabc=$V1usgdkhzmts['intro_id'];
if($Vlk2ld4shabc!=''){
$this->get_levelcommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,1,$Vlk2ld4shabc,$Vqqmwd5b2wy4,$Vdvdwixvkrkc);
// $this->get_carriercommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,1,$Vlk2ld4shabc,$Vqqmwd5b2wy4,$Vdvdwixvkrkc);
}
}
}
$Vypoeqdd5s4r = 'success';
$Vxxjbaywxpak = lang('deposit_success');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
}
else
{
$Vypoeqdd5s4r = 'error';
$Vxxjbaywxpak = lang('deposit_error');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
}
public function calculateMature($Vc14sl1ryyzv,$Vnz1q4kzhd0b)
{
$Vxzr3eklhmse = strtotime("+".$Vnz1q4kzhd0b." days", strtotime($Vc14sl1ryyzv));
return date("Y-m-d", $Vxzr3eklhmse);
}
public function get_levelcommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,$Voqesu20qctb,$V0gs0fwahevk,$Vue1olb21tpx,$Vuxkmtwqnqgv){
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id, tbl_users.username')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vlk2ld4shabc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$Vi0zu3gec0ln = $V2w2ukp5cwei->row_array();
$Vqabg42qefes=$Vi0zu3gec0ln['username'];
$Vltedl2e4ic1=$Vi0zu3gec0ln['intro_id'];
$Voqesu20qctb_info=commission_data($Voqesu20qctb);
$Voqesu20qctb_commission=0;
$Vhjtmvkh4px1=user_investment($Vlk2ld4shabc);
$Vwd0sxsujadg=crop_investment($Vlk2ld4shabc);
if($Vhjtmvkh4px1>=$Voqesu20qctb_info['user_investment'] && $Vwd0sxsujadg>=$Voqesu20qctb_info['crop_investment']){
$Voqesu20qctb_commission=$Voqesu20qctb_info['bonus'];
}
echo $Voqesu20qctb_commission;
if($Voqesu20qctb_commission>0){
$Vocgh0tnsvbr=number_format(($Vkl4x2p2bwpr*$Voqesu20qctb_commission)/100, 2, '.', '');
$Vzz2xrjrp4xz=$this->db->where(array('user_id' => $Vuxkmtwqnqgv))->get('tbl_users')->row_array();
$V52kk44fthiw="Referral Commission Earned From ".$Vzz2xrjrp4xz['username'];
$Vdiy5tu5u0wv=date('Y-m-d h:i:s');
$Vwqezw10n5kr = "REF".generateCode(7);
$Vnck5eb2ir5z="insert into history (user_id,amount,type,description,transaction_id) values ('$Vlk2ld4shabc','$Vocgh0tnsvbr','commissions','$V52kk44fthiw','$Vwqezw10n5kr')";
$Vtbjkryrgj2c=$this->db->query($Vnck5eb2ir5z);
}
$Voqesu20qctb+=1;
$Vocgh0tnsvbrission_data=commission_data();
if($Voqesu20qctb<=count($Vocgh0tnsvbrission_data)){
$this->get_levelcommission($Vltedl2e4ic1,$Vkl4x2p2bwpr,$Voqesu20qctb,$Vlk2ld4shabc,$Vue1olb21tpx,$Vuxkmtwqnqgv);
}
}
}
public function get_carriercommission($Vlk2ld4shabc,$Vkl4x2p2bwpr,$Voqesu20qctb,$V0gs0fwahevk,$Vue1olb21tpx,$Vuxkmtwqnqgv){
$V2w2ukp5cwei=$this->db->select('tbl_users.user_id, tbl_account_details.fullname, tbl_users.email, tbl_account_details.intro_id, tbl_users.username')
->from('tbl_users')
->join('tbl_account_details', 'tbl_users.user_id = tbl_account_details.user_id')
->where("tbl_users.user_id", $Vlk2ld4shabc)
->get();
if ( $V2w2ukp5cwei->num_rows() > 0 ){
$Vi0zu3gec0ln = $V2w2ukp5cwei->row_array();
$Vltedl2e4ic1=$Vi0zu3gec0ln['intro_id'];
$Voqesu20qctb_info=carrier_commission_data($Voqesu20qctb);
$Voqesu20qctb_commission=0;
$Voqesu20qctb_commission=$Voqesu20qctb_info['bonus'];
if($Voqesu20qctb_commission>0){
$Vocgh0tnsvbr=number_format(($Vkl4x2p2bwpr*$Voqesu20qctb_commission)/100, 2, '.', '');
$Vzz2xrjrp4xz=$this->db->where(array('user_id' => $Vuxkmtwqnqgv))->get('tbl_users')->row_array();
$V52kk44fthiw="Carrier Commission Earned From ".$Vzz2xrjrp4xz['username'];
$Vdiy5tu5u0wv=date('Y-m-d h:i:s');
$Vwqezw10n5kr = "CREF".generateCode(6);
$Vnck5eb2ir5z="insert into history (user_id,amount,type,description,transaction_id) values ('$Vlk2ld4shabc','$Vocgh0tnsvbr','commissions','$V52kk44fthiw','$Vwqezw10n5kr')";
$Vtbjkryrgj2c=$this->db->query($Vnck5eb2ir5z);
}
$Voqesu20qctb+=1;
$Vocgh0tnsvbrission_data=carrier_commission_data();
if($Voqesu20qctb<=count($Vocgh0tnsvbrission_data)){
$this->get_carriercommission($Vltedl2e4ic1,$Vkl4x2p2bwpr,$Voqesu20qctb,$Vlk2ld4shabc,$Vue1olb21tpx,$Vuxkmtwqnqgv);
}
}
}
public function success(){
$Vypoeqdd5s4r = 'success';
$Vxxjbaywxpak = lang('deposit_success');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
public function error(){
$Vypoeqdd5s4r = 'error';
$Vxxjbaywxpak = lang('deposit_error');
set_message($Vypoeqdd5s4r, $Vxxjbaywxpak);
redirect("client/investment_plan");
}
}
Function Calls
| defined | 1 |
Stats
| MD5 | 0bb217af3598fb30af191de8711cc985 |
| Eval Count | 0 |
| Decode Time | 98 ms |